Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/auth/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def load_entry(self, sp_id, tenant):
matched = [x for x in self._entries if sp_id == x[_CLIENT_ID]]
if not matched:
raise CLIError("Could not retrieve credential from local cache for service principal {}. "
"Please run `az login` for this service principal."
"Run `az login` for this service principal."
.format(sp_id))
matched_with_tenant = [x for x in matched if tenant == x[_TENANT]]
if matched_with_tenant:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(self, client_id, username, **kwargs):
accounts = self.get_accounts(username)

if not accounts:
raise CLIError("User {} does not exist in the MSAL token cache. Please run `az login`.".format(username))
raise CLIError("User {} does not exist in MSAL token cache. Run `az login`.".format(username))

if len(accounts) > 1:
raise CLIError("Found multiple accounts with the same username. Please report to us via Github: "
Expand Down