3
0

Fix resource.Ref eq. check to properly handle wildcard paths

This commit is contained in:
Tomaž Jerman 2022-04-27 14:52:55 +02:00 committed by Denis Arh
parent 9f7e87f30e
commit 3643b7d23b

View File

@ -215,6 +215,14 @@ func (r *Ref) IsWildcard() bool {
}
func (a *Ref) equals(b *Ref) bool {
if a == nil && a == b {
return true
}
if a == nil && a != b {
return false
}
if a.ResourceType != b.ResourceType {
return false
}