Skip to content

Commit 4e90858

Browse files
committed
kolla-images.py: Check for existence of skopeo
1 parent 82a194a commit 4e90858

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/kolla-images.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,11 @@ def validate(kolla_image_tags: KollaImageTags):
246246

247247
def check_tags(base_distros: List[str], kolla_image_tags: KollaImageTags, registry: str, namespace: str):
248248
"""Check whether expected tags are present in container image registry."""
249+
try:
250+
subprocess.check_output("type skopeo", shell=True)
251+
except subprocess.CalledProcessError:
252+
print("Failed to find skopeo. Please install it.")
253+
sys.exit(1)
249254
image_tags = get_tags(base_distros, kolla_image_tags)
250255

251256
missing = {}

0 commit comments

Comments
 (0)