Skip to content

Commit 68aff52

Browse files
authored
Merge pull request #17 from Pansanel/mem
Add images that do not have the STATUS tag
2 parents 5152533 + fa6ed21 commit 68aff52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cloudkeeper_os/imagemanager.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def update_image_list_identifiers(self):
217217

218218
for image in image_list:
219219
if IMAGE_LIST_ID_TAG in image:
220-
if IMAGE_STATUS_TAG in image and image[IMAGE_STATUS_TAG] != 'EOL':
220+
if (IMAGE_STATUS_TAG not in image) or (image[IMAGE_STATUS_TAG] != 'EOL'):
221221
if image[IMAGE_LIST_ID_TAG] not in appliances:
222222
appliances[image[IMAGE_LIST_ID_TAG]] = []
223223
appliances[image[IMAGE_LIST_ID_TAG]].append(image)
@@ -237,7 +237,7 @@ def get_appliances(self, image_list_identifier):
237237
elif field == 'image_list_identifier':
238238
key = IMAGE_LIST_ID_TAG
239239
else:
240-
key = 'APPLIANCE_'+str.upper(field)
240+
key = 'APPLIANCE_' + str.upper(field)
241241
if key in image:
242242
if field in APPLIANCE_INT_VALUES:
243243
properties[field] = long(image[key])

0 commit comments

Comments
 (0)