Skip to content

Commit

Permalink
azurerm_role_definition - Add conversion check to avoid nil panic (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb authored Feb 16, 2023
1 parent 71da6f5 commit d5de9f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/services/authorization/role_definition_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ func expandRoleDefinitionAssignableScopes(d *pluginsdk.ResourceData) []string {
scopes = append(scopes, assignedScope)
} else {
for _, scope := range assignableScopes {
scopes = append(scopes, scope.(string))
if s, ok := scope.(string); ok {
scopes = append(scopes, s)
}
}
}

Expand Down

0 comments on commit d5de9f9

Please sign in to comment.