mirror of
https://github.com/kyverno/kyverno.git
synced 2025-04-18 02:06:52 +00:00
fix bug
This commit is contained in:
parent
a8e6de2fab
commit
37d50999fb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue