Merge "Remove unused variable"
This commit is contained in:
commit
a244cd6e5a
@ -117,13 +117,9 @@ def import_image(image_repo, image_factory, task_input, task_id, uri):
|
|||||||
|
|
||||||
|
|
||||||
def create_image(image_repo, image_factory, image_properties, task_id):
|
def create_image(image_repo, image_factory, image_properties, task_id):
|
||||||
_base_properties = []
|
|
||||||
for k, v in v2_api.get_base_properties().items():
|
|
||||||
_base_properties.append(k)
|
|
||||||
|
|
||||||
properties = {}
|
properties = {}
|
||||||
# NOTE: get the base properties
|
# NOTE: get the base properties
|
||||||
for key in _base_properties:
|
for key in v2_api.get_base_properties():
|
||||||
try:
|
try:
|
||||||
properties[key] = image_properties.pop(key)
|
properties[key] = image_properties.pop(key)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user