Skip to content

Commit

Permalink
remove platform code
Browse files Browse the repository at this point in the history
  • Loading branch information
austencollins committed Jan 12, 2019
1 parent 5491cc5 commit 45c65ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/Serverless.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ class Serverless {

// populate variables after --help, otherwise help may fail to print
// (https://github.com/serverless/serverless/issues/2041)
return this.variables.populateService(this.pluginManager.cliOptions).then(() => {
return this.variables.populateService(this.pluginManager.cliOptions)
.then(() => {
if ((!this.processedInput.commands.includes('deploy') &&
!this.processedInput.commands.includes('remove')) || !this.config.servicePath) {
return BbPromise.resolve();
}
return BbPromise.resolve();
})
.then(() => {
// merge arrays after variables have been populated
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/aws/deploy/lib/createStack.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
'CloudFormation',
'createStack',
params
).then((cfData) => this.monitorStack('create', cfData))
).then((cfData) => this.monitorStack('create', cfData));
},

createStack() {
Expand Down

0 comments on commit 45c65ba

Please sign in to comment.