Merge "Relax filter_images_with_labels() and re-add kolla_version"
This commit is contained in:
commit
1bab8cc0a4
@ -35,6 +35,7 @@ tcib_envs:
|
||||
tcib_gather_files: '{{ lookup(''fileglob'', ''/usr/share/tripleo-common/container-images/kolla/base/*'', wantlist=True) }}'
|
||||
tcib_labels:
|
||||
maintainer: OpenStack TripleO team
|
||||
kolla_version: none
|
||||
tcib_packages:
|
||||
common:
|
||||
- ca-certificates
|
||||
|
@ -987,8 +987,15 @@ class BaseImageUploader(object):
|
||||
raise
|
||||
image_labels = self._image_labels(
|
||||
url, session=session)
|
||||
if set(labels).issubset(set(image_labels)):
|
||||
images_with_labels.append(image)
|
||||
# The logic is the following: if one of the labels in
|
||||
# modify_only_with_labels parameter is present in the image, it
|
||||
# will match and add the images that need to be modified.
|
||||
for label in labels:
|
||||
if label in image_labels:
|
||||
# we found a matching label, adding the image
|
||||
# and leave the loop.
|
||||
images_with_labels.append(image)
|
||||
break
|
||||
|
||||
return images_with_labels
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user