Skip to content

Commit

Permalink
fixup! WIP XS 6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ydirson committed Sep 27, 2024
1 parent e9557ae commit 53487fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def _ssh(hostname_or_ip, cmd, check, simple_output, suppress_fingerprint_warning
if decode:
output = output.decode()

if res.returncode and check:
if res.returncode not in (0, 255) and check:
return False, SSHCommandFailed(res.returncode, output_for_errors, command)

if simple_output:
Expand Down

0 comments on commit 53487fa

Please sign in to comment.