Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 2edb087

Browse files
committed
Minor retouch
1 parent 599160d commit 2edb087

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ai/backend/client/cli/admin/images.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def rescan_images_impl(registry: str) -> None:
5757
print_error(e)
5858
sys.exit(1)
5959
if not result['ok']:
60-
print_fail(f"Rescanning has failed: {result['msg']}")
60+
print_fail(f"Failed to begin registry scanning: {result['msg']}")
6161
sys.exit(1)
6262
print_done("Started updating the image metadata from the configured registries.")
6363
task_id = result['task_id']
@@ -77,7 +77,6 @@ async def rescan_images_impl(registry: str) -> None:
7777
completion_msg_func = \
7878
lambda: print_fail(f"Error occurred: {error_msg}")
7979
elif ev.event == 'task_cancelled':
80-
pbar.write(ev.data)
8180
completion_msg_func = \
8281
lambda: print_warn("Registry scanning has been "
8382
"cancelled in the middle.")

0 commit comments

Comments
 (0)