1
0
Fork 0

fixed bug in subprocess.run

This commit is contained in:
Christian Kühnel 2019-11-18 16:38:55 +01:00
parent d028ac35b1
commit f8eaba6cf1

View file

@ -59,8 +59,7 @@ def _apply_patch(diff_id: str, conduit_token: str, host: str):
cmd = 'arc patch --nobranch --no-ansi --diff "{}" --nocommit '\ cmd = 'arc patch --nobranch --no-ansi --diff "{}" --nocommit '\
'--conduit-token "{}" --conduit-uri "{}"'.format( '--conduit-token "{}" --conduit-uri "{}"'.format(
diff_id, conduit_token, host ) diff_id, conduit_token, host )
result = subprocess.run(cmd, capture_output=True, stderr=subprocess.STDOUT, result = subprocess.run(cmd, capture_output=True, shell=True, text=True)
shell=True, text=True)
if result.returncode != 0: if result.returncode != 0:
print('ERROR: arc patch failed with error code {} and message:'.format(result.returncode)) print('ERROR: arc patch failed with error code {} and message:'.format(result.returncode))
print(result.stdout + result.stderr) print(result.stdout + result.stderr)