We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c3cf2f commit df1198aCopy full SHA for df1198a
src/azure-cli-core/azure/cli/core/auth/util.py
@@ -44,7 +44,7 @@ def aad_error_handler(error, tenant=None, scopes=None, claims_challenge=None):
44
recommendation = None
45
if error_codes and 7000215 in error_codes:
46
recommendation = PASSWORD_CERTIFICATE_WARNING
47
- else:
+ elif tenant or scopes or claims_challenge:
48
login_command = _generate_login_command(tenant=tenant, scopes=scopes, claims_challenge=claims_challenge)
49
login_message = ('Run the command below to authenticate interactively; '
50
'additional arguments may be added as needed:\n'
0 commit comments