Skip to content

Commit

Permalink
improving the errors
Browse files Browse the repository at this point in the history
Signed-off-by: Hossein Rouhani <[email protected]>
  • Loading branch information
HRouhani committed Nov 13, 2024
1 parent 7ab3ab8 commit e518ac6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions providers/ms365/resources/conditional-access.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ func (a *mqlMicrosoftConditionalAccessNamedLocations) ipLocations() ([]interface

ctx := context.Background()
namedLocations, err := graphClient.Identity().ConditionalAccess().NamedLocations().Get(ctx, nil)
if err != nil {
return nil, transformError(err)
}

var locationDetails []interface{}
for _, location := range namedLocations.GetValue() {
Expand Down Expand Up @@ -66,6 +69,9 @@ func (a *mqlMicrosoftConditionalAccessNamedLocations) countryLocations() ([]inte

ctx := context.Background()
namedLocations, err := graphClient.Identity().ConditionalAccess().NamedLocations().Get(ctx, nil)
if err != nil {
return nil, transformError(err)
}

var locationDetails []interface{}
for _, location := range namedLocations.GetValue() {
Expand Down

0 comments on commit e518ac6

Please sign in to comment.