Skip to content

Commit

Permalink
Return varRef instead of val
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bergeron committed Nov 27, 2020
1 parent 8a70f9e commit 8b644b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/iac-providers/terraform/v12/variable-references.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ func (r *RefResolver) ResolveVarRefFromParentModuleCall(varRef string) interface
resolvedVal := strings.Replace(varRef, varExpr, valStr, 1)
if varRef == resolvedVal {
zap.S().Debugf("resolved str variable ref refers to self: '%v'", varRef)
return val
return varRef
}
zap.S().Debugf("resolved str variable ref: '%v', value: '%v'", varRef, string(resolvedVal))
return r.ResolveStrRef(resolvedVal)
Expand Down

0 comments on commit 8b644b5

Please sign in to comment.