Skip to content

Commit

Permalink
Setting principals before expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
mvbrock committed Jan 7, 2025
1 parent 6d8ad52 commit 7bee98a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/srv/discovery/fetchers/azure-sync/azure-sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
})
}
Expand Down

0 comments on commit 7bee98a

Please sign in to comment.