]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
container/make-manifest-list.py: handle "no tags for this version" 67830/head
authorDan Mick <dmick@ibm.com>
Mon, 16 Mar 2026 20:17:40 +0000 (13:17 -0700)
committerDan Mick <dmick@ibm.com>
Thu, 19 Mar 2026 17:50:39 +0000 (10:50 -0700)
Especially now that --version is required, there may be no
useful tag; catch early and error out.

Signed-off-by: Dan Mick <dmick@ibm.com>
container/make-manifest-list.py

index 085c112168960d4a6949eb74a9a21b219dede041..0893f73ebfc319e2f7cdd36514cf8ea416c21265 100755 (executable)
@@ -150,7 +150,14 @@ def build_prerelease(sysargs):
         f'{arch_specific_host}/{amd64_repo}',
         f'{arch_specific_host}/{arm64_repo}',
     )
-    tags = [get_latest_tag(p) for p in repopaths]
+    tags = list()
+    for p in repopaths:
+        latest = get_latest_tag(p, sysargs.version)
+        if latest is None:
+            print(f'no {sysargs.version} tag in {p}', file=sys.stderr)
+            return(1)
+        tags.append(latest)
+
     print(f'latest tags: amd64:{tags[0]} arm64:{tags[1]}')
 
     # check that version of latest tag matches