1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-04-08 10:04:25 +00:00

quote image in error ()

Signed-off-by: bakito <github@bakito.ch>
This commit is contained in:
Marc Brugger 2023-05-23 16:47:47 +02:00 committed by GitHub
parent 07be2d9d72
commit 2031134a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,7 +120,7 @@ func extract(
value = resultStr
}
if imageInfo, err := imageutils.GetImageInfo(value, cfg); err != nil {
return fmt.Errorf("invalid image %s (%s)", value, err.Error())
return fmt.Errorf("invalid image '%s' (%s)", value, err.Error())
} else {
(*imageInfos)[key] = ImageInfo{*imageInfo, pointer}
}