Skip to content

Commit b7433c8

Browse files
authored
Merge pull request #1 from jefer590/master
fix: use parsed yaml to populate yaml variables
2 parents 9daf1fa + ec72425 commit b7433c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ class ServerlessStepFunctionsLocal {
104104

105105
const configPath = path.join(servicePath, 'serverless.yml');
106106

107-
const parsed = await this.serverless.yamlParser.parse(configPath);
107+
const preParsed = await this.serverless.yamlParser.parse(configPath);
108+
const parsed = await this.serverless.variables.populateObject(preParsed);
108109

109110
this.stateMachines = parsed.stepFunctions.stateMachines;
110111

0 commit comments

Comments
 (0)