Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
try and workaround pexpect error.
Browse files Browse the repository at this point in the history
  • Loading branch information
chambridge committed Aug 11, 2017
1 parent 5aae85d commit b6c3fff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rho/scancommand.py
Expand Up @@ -239,7 +239,8 @@ def run_ansible_with_vault(cmd_string, vault_pass, ssh_key_passphrase=None,
child.logfile = logfile
child.expect(pexpect.EOF)

child.wait()
if child.isalive():
child.wait()
if log_to_stdout:
# tail will kill itself once it is done copying data
# to stdout, thanks to the --pid option.
Expand Down

0 comments on commit b6c3fff

Please sign in to comment.