Skip to content

Commit

Permalink
revert survey link in login (Azure#11557)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengzhou-msft authored Dec 12, 2019
1 parent f936020 commit 465c0e9
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 @@ -782,7 +782,6 @@ def find_from_user_account(self, username, password, tenant, resource):
return result

def find_through_authorization_code_flow(self, tenant, resource, authority_url):
from azure.cli.core.commands.constants import SURVEY_PROMPT
# launch browser and get the code
results = _get_authorization_code(resource, authority_url)

Expand All @@ -794,7 +793,6 @@ def find_through_authorization_code_flow(self, tenant, resource, authority_url):
token_entry = context.acquire_token_with_authorization_code(results['code'], results['reply_url'],
resource, _CLIENT_ID, None)
self.user_id = token_entry[_TOKEN_ENTRY_USER_ID]
print(SURVEY_PROMPT + "\n")
logger.warning("You have logged in. Now let us find all the subscriptions to which you have access...")
if tenant is None:
result = self._find_using_common_tenant(token_entry[_ACCESS_TOKEN], resource)
Expand Down

0 comments on commit 465c0e9

Please sign in to comment.