Skip to content

Commit 61cb10e

Browse files
committed
reauth-sp
1 parent bb2b31a commit 61cb10e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/azure-cli-core/azure/cli/core/auth

src/azure-cli-core/azure/cli/core/auth/util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,10 @@ def aad_error_handler(error, **kwargs):
4141
error_codes = error.get('error_codes')
4242

4343
# Build recommendation message
44+
recommendation = None
4445
if error_codes and 7000215 in error_codes:
4546
recommendation = PASSWORD_CERTIFICATE_WARNING
46-
else:
47+
elif kwargs:
4748
login_command = _generate_login_command(**kwargs)
4849
recommendation = "Interactive authentication is needed. Please run:\n{}".format(login_command)
4950

0 commit comments

Comments
 (0)