Skip to content

Commit

Permalink
Revert "Fix Possible error when subscription is null in Get-AzRoleAss…
Browse files Browse the repository at this point in the history
…ignment (Azure#22776)"

This reverts commit c962a07.
  • Loading branch information
isra-fel committed Sep 26, 2023
1 parent 1baadb0 commit 7aaf4aa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public override void ExecuteCmdlet()
ResourceGroupName = ResourceGroupName,
ResourceName = ResourceName,
ResourceType = ResourceType,
Subscription = string.IsNullOrEmpty(ResourceGroupName) ? null : DefaultProfile.DefaultContext.Subscription?.Id?.ToString()
Subscription = string.IsNullOrEmpty(ResourceGroupName) ? null : DefaultProfile.DefaultContext.Subscription.Id
},
ExpandPrincipalGroups = ExpandPrincipalGroups.IsPresent,
IncludeClassicAdministrators = IncludeClassicAdministrators.IsPresent,
Expand Down

0 comments on commit 7aaf4aa

Please sign in to comment.