Fixes "stores" property added to the image
"stores" property gets added to the image when `glance image-create-via-import` is called with --stores Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0 Closes-Bug: #1889666
This commit is contained in:
@@ -235,6 +235,9 @@ def do_image_create_via_import(gc, args):
|
||||
# determine if backend is valid
|
||||
_validate_backend(backend, gc)
|
||||
elif stores:
|
||||
# NOTE(jokke): Making sure here that we do not include the stores in
|
||||
# the create call
|
||||
fields.pop("stores")
|
||||
stores = str(stores).split(',')
|
||||
for store in stores:
|
||||
# determine if backend is valid
|
||||
|
||||
Reference in New Issue
Block a user