Skip to content

Commit 0a87ba9

Browse files
authored
add return code status check
1 parent 3d8ac89 commit 0a87ba9

File tree

1 file changed

+1
-1
lines changed
  • src/azure-cli/azure/cli/command_modules/acr

1 file changed

+1
-1
lines changed

src/azure-cli/azure/cli/command_modules/acr/custom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def acr_login(cmd,
324324
_, stderr = p.communicate()
325325
return_code = p.returncode
326326

327-
if stderr:
327+
if stderr or return_code != 0:
328328
if b'error storing credentials' in stderr and b'stub received bad data' in stderr \
329329
and _check_wincred(login_server):
330330
# Retry once after disabling wincred

0 commit comments

Comments
 (0)