Skip to content

Commit

Permalink
Eliminate duplicate processing for exit code on failed command.
Browse files Browse the repository at this point in the history
  • Loading branch information
psharkey committed Jan 6, 2020
1 parent 12c4841 commit 8edff26
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/ansible/plugins/connection/aws_ssm.py
Expand Up @@ -417,11 +417,6 @@ def _post_process(self, stdout):
returncode = 0
stdout = stdout[:success]
elif fail > success:
try:
# test using: ansible -m raw -a 'cmd /c exit 99'
returncode = int(stdout[fail:].split()[1])
except (IndexError, ValueError):
returncode = -1
stdout = stdout[:fail]
else:
returncode = -51
Expand Down

0 comments on commit 8edff26

Please sign in to comment.