Skip to content

Commit

Permalink
Fix for issue #108 (#109)
Browse files Browse the repository at this point in the history
* Fix for issue #108

* Fix for issue #108 : added warning
  • Loading branch information
erzhan46 committed Aug 12, 2021
1 parent 32e449d commit 25817ce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/syncer/azure.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ func (a *AzureSyncer) Sync() ([]userv1.Group, error) {

groupName := group.DisplayName

if groupName == nil {
azureLogger.Info(fmt.Sprintf("Warning: Skipping Group record with empty displayName"))
continue
}

if !isGroupAllowed(*groupName, a.Provider.Groups) {
continue
}
Expand Down

0 comments on commit 25817ce

Please sign in to comment.