Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
internal/core: ensure variables is initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Nov 30, 2020
1 parent 3699c92 commit 563f4ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/core/app_deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (a *App) Deploy(ctx context.Context, push *pb.PushedArtifact) (*pb.Deployme

// Add our build to our config
var evalCtx hcl.EvalContext
evalCtx.Variables = map[string]cty.Value{}
if err := evalCtxTemplateProto(&evalCtx, "artifact", push); err != nil {
a.logger.Warn("failed to prepare template variables, will not be available",
"err", err)
Expand Down

0 comments on commit 563f4ec

Please sign in to comment.