From 3477bc080ef7d58830e5a3be62f83672345cdf26 Mon Sep 17 00:00:00 2001 From: Austen Collins Date: Fri, 18 Sep 2015 13:23:33 -0700 Subject: [PATCH] deploy endpoint: clean-up hack --- lib/commands/deploy_endpoint.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/commands/deploy_endpoint.js b/lib/commands/deploy_endpoint.js index 5099274e9..905f961af 100644 --- a/lib/commands/deploy_endpoint.js +++ b/lib/commands/deploy_endpoint.js @@ -463,7 +463,13 @@ ApiDeployer.prototype._buildEndpoints = Promise.method(function() { .then(_this._createEndpointMethod) .then(_this._createEndpointIntegration) .then(_this._createEndpointMethodResponses) - .then(_this._createEndpointMethodIntegResponses); + .then(_this._createEndpointMethodIntegResponses) + .then(function() { + + // Clean-up hack + // TODO figure out how "apig" temp property is being written to the awsm's json and remove that + if (endpoint.apiGateway.apig) delete endpoint.apiGateway.apig; + }); }); });