summaryrefslogtreecommitdiff
path: root/glanceclient/v2
diff options
context:
space:
mode:
authorErno Kuvaja <jokke@usr.fi>2020-07-30 18:39:31 +0100
committerErno Kuvaja <jokke@usr.fi>2020-07-30 18:39:31 +0100
commit77eab17cf9f3cf3f2578f73163cb816e425effa2 (patch)
tree8434f0ee075eab11538e4c6eda8511146f3f9e97 /glanceclient/v2
parenta29c6be97d923bdfb10bdb1d68a45190930e8212 (diff)
downloadpython-glanceclient-3.2.1.tar.gz
Fixes "stores" property added to the image3.2.1
"stores" property gets added to the image when `glance image-create-via-import` is called with --stores Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0 Closes-Bug: #1889666
Diffstat (limited to 'glanceclient/v2')
-rw-r--r--glanceclient/v2/shell.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/glanceclient/v2/shell.py b/glanceclient/v2/shell.py
index 8414308..592b2da 100644
--- a/glanceclient/v2/shell.py
+++ b/glanceclient/v2/shell.py
@@ -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