From 8fcec14a420dd3d3547b6866add13bf7f923a233 Mon Sep 17 00:00:00 2001 From: saturn Date: Tue, 6 Feb 2024 15:57:36 +0000 Subject: [PATCH] wip --- examples/registering-images/register.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/registering-images/register.py b/examples/registering-images/register.py index 0c37b5a4..cab018c8 100644 --- a/examples/registering-images/register.py +++ b/examples/registering-images/register.py @@ -102,7 +102,7 @@ def delete_all_tags(saturn_image_id: str, tags: List[Dict], dry_run: bool=False) url = make_url(f"api/images/{saturn_image_id}/tags/{t['id']}") print('delete', url) if not dry_run: - requests.delete(url, headers=saturn_headers).json() + resp = requests.delete(url, headers=saturn_headers) def register_by_id(image_uri: str, version: str, saturn_image_id: str, dry_run: bool = False): @@ -169,12 +169,14 @@ def cli(): @cli.command() def run_once(): sync() + sync_base() @cli.command() def run(): while True: sync() + sync_base() time.sleep(30)