Some environments refuse to return the command output

This results in the output from salt-ssh being empty,
this fix ensures that the output is always there
This commit is contained in:
Thomas S Hatch 2016-08-15 12:57:58 -06:00
parent d75005c519
commit 10037b00cb

View file

@ -230,7 +230,7 @@ def main(argv): # pylint: disable=W0613
subprocess.call(salt_argv)
shutil.rmtree(OPTIONS.saltdir)
else:
os.execv(sys.executable, salt_argv)
subprocess.call(salt_argv)
if OPTIONS.cmd_umask is not None:
os.umask(old_umask)