Skip to content

Commit e72983f

Browse files
yugangw-msftwilliexu
authored andcommitted
core: fix a breaking in kv when run under service principal (#7946)
1 parent b8fb3f3 commit e72983f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/azure-cli-core/azure/cli/core/_profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -569,8 +569,8 @@ def get_raw_token(self, resource=None, subscription=None):
569569
account[_TENANT_ID], resource)
570570
else:
571571
creds = self._creds_cache.retrieve_token_for_service_principal(username_or_sp_id,
572-
account[_TENANT_ID],
573-
resource)
572+
resource,
573+
account[_TENANT_ID])
574574
return (creds,
575575
str(account[_SUBSCRIPTION_ID]),
576576
str(account[_TENANT_ID]))

0 commit comments

Comments
 (0)