Skip to content

Commit db47936

Browse files
authored
replace os.system call with subprocess.run (#2708)
1 parent a41686f commit db47936

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/build_upload_release.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
f"{organization}/torchserve:{check_ts_version()}-cpu",
5757
f"{organization}/torchserve:{check_ts_version()}-gpu",
5858
]:
59-
os.system(f"docker push {image}")
59+
try_and_handle(f"docker push {image}", dry_run)
6060

6161
# Cleanup built images
6262
if args.cleanup:

kubernetes/kserve/build_upload_release.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
f"{organization}/torchserve-kfs:{check_ts_version()}",
4444
f"{organization}/torchserve-kfs:{check_ts_version()}-gpu",
4545
]:
46-
os.system(f"docker push {image}")
46+
try_and_handle(f"docker push {image}", dry_run)
4747

4848
# Cleanup built images
4949
if args.cleanup:

0 commit comments

Comments
 (0)