1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-18 02:06:52 +00:00
This commit is contained in:
shivkumar dudhani 2020-02-14 12:41:57 -08:00
parent a8e6de2fab
commit 37d50999fb

View file

@ -85,7 +85,7 @@ func subVal(ctx context.EvalInterface, valuePattern interface{}, path string, er
// operator + string variable
switch typedValue := value.(type) {
case string:
return typedValue + value.(string)
return string(operatorVariable) + typedValue
default:
glog.Infof("cannot use operator with object variables. operator used %s in pattern %v", string(operatorVariable), valuePattern)
return emptyInterface