Skip to content

Commit

Permalink
Environment variable override file should use function logical ID for…
Browse files Browse the repository at this point in the history
… start-api operations (#29)
  • Loading branch information
PaulMaddox authored and sanathkr committed Aug 13, 2017
1 parent 45d73f4 commit a4e5c23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion start.go
Expand Up @@ -80,6 +80,7 @@ func start(c *cli.Context) {
fmt.Printf("Environment variable values must be a valid JSON\n%s\n", err)
os.Exit(1)
}

}

log.Printf("Successfully parsed %s (version %s)", filename, template.Version())
Expand Down Expand Up @@ -109,7 +110,7 @@ func start(c *cli.Context) {
endpointCount++

// Find the env-vars map for the function
funcEnvVarsOverrides := envVarsOverrides[function.FunctionName()]
funcEnvVarsOverrides := envVarsOverrides[name]

runt, err := NewRuntime(NewRuntimeOpt{
Function: function,
Expand Down

0 comments on commit a4e5c23

Please sign in to comment.