Print only on error syncoid-batch
This commit is contained in:
parent
479df53e7a
commit
2b197879b5
@ -47,4 +47,9 @@ if __name__ == "__main__":
|
|||||||
syncoid_cmd.append(config["dataset"])
|
syncoid_cmd.append(config["dataset"])
|
||||||
syncoid_cmd.append(config["backup_dataset"])
|
syncoid_cmd.append(config["backup_dataset"])
|
||||||
|
|
||||||
subprocess.run(syncoid_cmd, check=True)
|
try:
|
||||||
|
subprocess.run(syncoid_cmd, check=True,
|
||||||
|
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
except subprocess.CalledProcessError as err:
|
||||||
|
print(err.stdout.decode("ascii"), flush=True)
|
||||||
|
raise
|
||||||
|
Loading…
Reference in New Issue
Block a user