PeerGrouping defaulting on access all

This commit is contained in:
mr
2026-04-03 10:36:48 +02:00
parent 54985bbc45
commit 450e917227

View File

@@ -365,7 +365,9 @@ type ResourcePartnerShip[T pricing.PricingProfileITF] struct {
func (ri *ResourcePartnerShip[T]) FilterPartnership(peerID string) { func (ri *ResourcePartnerShip[T]) FilterPartnership(peerID string) {
if ri.PeerGroups["*"] == nil && ri.PeerGroups[peerID] == nil { if ri.PeerGroups["*"] == nil && ri.PeerGroups[peerID] == nil {
ri.PeerGroups = map[string][]string{} ri.PeerGroups = map[string][]string{
"*": {"*"},
}
} else { } else {
ri.PeerGroups = map[string][]string{} ri.PeerGroups = map[string][]string{}
if ri.PeerGroups["*"] != nil { if ri.PeerGroups["*"] != nil {