mirror of
https://github.com/ceph/ceph
synced 2026-08-02 07:03:18 +00:00
container/make-manifest-list.py: handle "no tags for this version"
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>
This commit is contained in:
parent
f5a92b13f3
commit
cc7d057729
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user