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 }) }