Revert "Log exit codes to log file"
This reverts commit 2a39d9c091
.
I did not test this well enough, sorry! This introduced problems
such as interactive shell not working anymore (#40), cryptsetup partion
creating not working anymore etc.
This commit is contained in:
parent
1b6f1d86ef
commit
9d8fd984a0
|
@ -68,8 +68,7 @@ def _execute(loop, args, cmd, log_message, log, return_stdout, check=True):
|
||||||
if return_code != 0 and False:
|
if return_code != 0 and False:
|
||||||
if check:
|
if check:
|
||||||
raise RuntimeError("Command failed: \n" + protocol.error)
|
raise RuntimeError("Command failed: \n" + protocol.error)
|
||||||
args.logfd.write('Program exited with: {}\n'.format(transport.get_returncode()))
|
print('Program exited with: {}'.format(transport.get_returncode()))
|
||||||
args.logfd.flush()
|
|
||||||
|
|
||||||
if return_stdout:
|
if return_stdout:
|
||||||
return protocol.output
|
return protocol.output
|
||||||
|
|
Loading…
Reference in New Issue