From 2db2dd2c555629066f1732bfe7552c3bb83d7749 Mon Sep 17 00:00:00 2001 From: horike37 Date: Tue, 10 Jul 2018 05:03:37 +0900 Subject: [PATCH 1/2] fixed issue 119 --- lib/yamlParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yamlParser.js b/lib/yamlParser.js index d1bb1212..a50ca2c1 100644 --- a/lib/yamlParser.js +++ b/lib/yamlParser.js @@ -14,7 +14,7 @@ module.exports = { return this.serverless.yamlParser .parse(serverlessYmlPath) .then((serverlessFileParam) => { - this.serverless.variables.populateObject(serverlessFileParam).then((parsedObject) => { + return this.serverless.variables.populateObject(serverlessFileParam).then((parsedObject) => { this.serverless.service.stepFunctions = {}; this.serverless.service.stepFunctions.stateMachines = parsedObject.stepFunctions From 594bb180af149a22ab6c3585f603ada845691b92 Mon Sep 17 00:00:00 2001 From: horike37 Date: Tue, 10 Jul 2018 05:13:35 +0900 Subject: [PATCH 2/2] fixed linting error --- lib/yamlParser.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/yamlParser.js b/lib/yamlParser.js index a50ca2c1..e183557c 100644 --- a/lib/yamlParser.js +++ b/lib/yamlParser.js @@ -13,8 +13,9 @@ module.exports = { const serverlessYmlPath = path.join(servicePath, 'serverless.yml'); return this.serverless.yamlParser .parse(serverlessYmlPath) - .then((serverlessFileParam) => { - return this.serverless.variables.populateObject(serverlessFileParam).then((parsedObject) => { + .then(serverlessFileParam => + this.serverless.variables.populateObject(serverlessFileParam) + .then(parsedObject => { this.serverless.service.stepFunctions = {}; this.serverless.service.stepFunctions.stateMachines = parsedObject.stepFunctions @@ -39,8 +40,8 @@ module.exports = { this.serverless.variables.populateService(this.serverless.pluginManager.cliOptions); return BbPromise.resolve(); - }); - }); + }) + ); }, getAllStateMachines() {