Skip to content

Commit

Permalink
replace os.system call with subprocess.run (#2708)
Browse files Browse the repository at this point in the history
  • Loading branch information
agunapal committed Oct 12, 2023
1 parent a41686f commit db47936
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/build_upload_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
f"{organization}/torchserve:{check_ts_version()}-cpu",
f"{organization}/torchserve:{check_ts_version()}-gpu",
]:
os.system(f"docker push {image}")
try_and_handle(f"docker push {image}", dry_run)

# Cleanup built images
if args.cleanup:
Expand Down
2 changes: 1 addition & 1 deletion kubernetes/kserve/build_upload_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
f"{organization}/torchserve-kfs:{check_ts_version()}",
f"{organization}/torchserve-kfs:{check_ts_version()}-gpu",
]:
os.system(f"docker push {image}")
try_and_handle(f"docker push {image}", dry_run)

# Cleanup built images
if args.cleanup:
Expand Down

0 comments on commit db47936

Please sign in to comment.