Skip to content

Commit fcb058c

Browse files
author
Andrea Tomassilli
committed
clean
1 parent 969b830 commit fcb058c

File tree

1 file changed

+2
-2
lines changed
  • src/azure-cli/azure/cli/command_modules/role

1 file changed

+2
-2
lines changed

src/azure-cli/azure/cli/command_modules/role/custom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,8 +596,8 @@ def _resolve_role_id(role, scope, definitions_client):
596596
"""
597597
# Check if it's a role definition resource ID: /providers/Microsoft.Authorization/roleDefinitions/<guid>
598598
# optionally prefixed with /subscriptions/... The last segment must be a valid GUID.
599-
if (re.match(r'(/subscriptions/[^/]+)?/providers/Microsoft.Authorization/roleDefinitions/[^/]+$', role, re.I)
600-
and is_guid(role.rsplit('/', 1)[-1])):
599+
if (re.match(r'(/subscriptions/[^/]+)?/providers/Microsoft.Authorization/roleDefinitions/[^/]+$', role, re.I) and
600+
is_guid(role.rsplit('/', 1)[-1])):
601601
return role
602602

603603
if is_guid(role):

0 commit comments

Comments
 (0)