tpl: Change error message on missing resource

Fixes #6942
This commit is contained in:
Sam Smith 2020-03-01 22:00:28 +00:00 committed by Bjørn Erik Pedersen
parent 305ce1c9ec
commit d7798906d8

View file

@ -299,6 +299,9 @@ func (ns *Namespace) resolveArgs(args []interface{}) (resources.ResourceTransfor
r, ok := args[1].(resources.ResourceTransformer)
if !ok {
if _, ok := args[1].(map[string]interface{}); !ok {
return nil, nil, fmt.Errorf("no Resource provided in transformation")
}
return nil, nil, fmt.Errorf("type %T not supported in Resource transformations", args[0])
}