From 7bee98ad2460e3cab384549bf9e609b70cb70016 Mon Sep 17 00:00:00 2001 From: Matt Brock Date: Tue, 7 Jan 2025 10:43:48 -0600 Subject: [PATCH] Setting principals before expansion --- lib/srv/discovery/fetchers/azure-sync/azure-sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/srv/discovery/fetchers/azure-sync/azure-sync.go b/lib/srv/discovery/fetchers/azure-sync/azure-sync.go index efca495cf7f18..17be6423feb74 100644 --- a/lib/srv/discovery/fetchers/azure-sync/azure-sync.go +++ b/lib/srv/discovery/fetchers/azure-sync/azure-sync.go @@ -163,12 +163,11 @@ func (a *Fetcher) fetch(ctx context.Context, feats Features) (*Resources, error) errsCh <- err return err } - err = expandMemberships(ctx, a.graphClient, principals) + result.Principals, err = expandMemberships(ctx, a.graphClient, principals) if err != nil { errsCh <- err return err } - result.Principals = principals return nil }) }