1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00
This commit is contained in:
shivkumar dudhani 2020-02-14 12:29:17 -08:00
parent eec0decae7
commit a8e6de2fab

View file

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