Skip to content

Commit

Permalink
{Profile} Show tenant display_name for tenants without subscriptions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jiasli authored Dec 18, 2020
1 parent 3e30a93 commit 2d27b9f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -930,8 +930,6 @@ def _find_using_common_tenant(self, access_token, resource):
# not available in /tenants?api-version=2016-06-01
if not hasattr(t, 'display_name'):
t.display_name = None
if hasattr(t, 'additional_properties'): # Remove this line once SDK is fixed
t.display_name = t.additional_properties.get('displayName')
temp_context = self._create_auth_context(tenant_id)
try:
logger.debug("Acquiring a token with tenant=%s, resource=%s", tenant_id, resource)
Expand Down

0 comments on commit 2d27b9f

Please sign in to comment.