fixed bug in subprocess.run
This commit is contained in:
parent
d028ac35b1
commit
f8eaba6cf1
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue