a
This commit is contained in:
parent
77cd91ccb1
commit
445c5e8938
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -16,7 +16,9 @@ if WITHOUT_CEPH and not os.path.isdir("/var/image"):
|
||||||
|
|
||||||
# We want to get images entries that requests images to be created
|
# We want to get images entries that requests images to be created
|
||||||
images = client.get_prefix(IMAGE_PREFIX, value_in_json=True)
|
images = client.get_prefix(IMAGE_PREFIX, value_in_json=True)
|
||||||
# print(list(images))
|
|
||||||
|
for im in images:
|
||||||
|
print(im, im.value)
|
||||||
images_to_be_created = filter(lambda im: im.value["status"] == "TO_BE_CREATED", images)
|
images_to_be_created = filter(lambda im: im.value["status"] == "TO_BE_CREATED", images)
|
||||||
|
|
||||||
for image in images_to_be_created:
|
for image in images_to_be_created:
|
||||||
|
|
Loading…
Add table
Reference in a new issue