Skip to content

Commit ec72425

Browse files
fix: use parsed yaml to populate yaml variables
1 parent 9daf1fa commit ec72425

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)