resources: Add data context to the key in ExecuteAsTemplate
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Mar 2020 21:21:16 +0000 (22:21 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 11 Mar 2020 21:21:16 +0000 (22:21 +0100)
Fixes #7046

resources/resource_transformers/templates/execute_as_template.go

index 115b3d047c274077fcfdb55f7e610e4e19531301..d6015c17eb2f396e6d0a69c361de8525589bcd5d 100644 (file)
@@ -48,7 +48,7 @@ type executeAsTemplateTransform struct {
 }
 
 func (t *executeAsTemplateTransform) Key() internal.ResourceTransformationKey {
-       return internal.NewResourceTransformationKey("execute-as-template", t.targetPath)
+       return internal.NewResourceTransformationKey("execute-as-template", t.targetPath, t.data)
 }
 
 func (t *executeAsTemplateTransform) Transform(ctx *resources.ResourceTransformationCtx) error {