1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-06 16:06:56 +00:00

fix global context error message logic error (#11815)

following same file line 91 and github.com/kyverno/kyverno/pkg/globalcontext/store#35

the proper handling should be `!ok`

Signed-off-by: Damien Degois <damien@degois.info>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
Damien Degois 2025-01-03 12:47:07 +01:00 committed by GitHub
parent 37c73f9314
commit e0fe6ec59a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -47,7 +47,7 @@ func NewGCTXLoader(
func (g *gctxLoader) HasLoaded() bool {
data, ok := g.gctxStore.Get(g.entry.Name)
if ok {
if !ok {
g.logger.Error(fmt.Errorf("failed to get data from global context store"), "failed to get data from global context store")
return false
}