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:
Erno Kuvaja
2020-07-30 18:39:31 +01:00
parent a29c6be97d
commit 77eab17cf9
3 changed files with 59 additions and 0 deletions
+3
View File
@@ -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