mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-30 19:35:06 +00:00
fix: jmespath random error handling (#4697)
Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charled.breteche@gmail.com>
This commit is contained in:
parent
7209445cd3
commit
6a8085522a
1 changed files with 1 additions and 1 deletions
|
@ -961,7 +961,7 @@ func jpRandom(arguments []interface{}) (interface{}, error) {
|
|||
rand.Seed(time.Now().UnixNano())
|
||||
ans, err := regen.Generate(pattern)
|
||||
if err != nil {
|
||||
fmt.Println("Invalid Pattern: ", err)
|
||||
return nil, err
|
||||
}
|
||||
return ans, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue