Skip to content

Commit

Permalink
apply project config to stack during pulumi config get
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Oct 20, 2022
1 parent 950c070 commit f3ce96f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/cmd/pulumi/config.go
Expand Up @@ -888,6 +888,12 @@ func getConfig(ctx context.Context, stack backend.Stack, key config.Key, path, j
return err
}

stackName := stack.Ref().Name().String()
// when asking for a configuration value, include values from the project config
err = workspace.ApplyProjectConfig(stackName, project, ps.Config)
if err != nil {
return err
}
cfg := ps.Config

v, ok, err := cfg.Get(key, path)
Expand Down

0 comments on commit f3ce96f

Please sign in to comment.