diff options
author | Erno Kuvaja <jokke@usr.fi> | 2020-07-30 18:39:31 +0100 |
---|---|---|
committer | Erno Kuvaja <jokke@usr.fi> | 2020-08-05 15:43:25 +0100 |
commit | 4c63903403d7ef7801c8e274b67f9647ff329991 (patch) | |
tree | 48a9e76218c3dfca2188ffa2b09ad8034a209818 /glanceclient/v2/shell.py | |
parent | 1d8fa3d8cc4841855209f8f73dbce6e65bff4741 (diff) | |
download | python-glanceclient-stable/ussuri.tar.gz |
Fixes "stores" property added to the imageussuri-em3.1.2stable/ussuri
"stores" property gets added to the image when
`glance image-create-via-import` is called with --stores
Change-Id: I514e6e3ac2f3a1f56fb7883ed403a04b1e7f13b0
Closes-Bug: #1889666
(cherry picked from commit 77eab17cf9f3cf3f2578f73163cb816e425effa2)
Diffstat (limited to 'glanceclient/v2/shell.py')
-rw-r--r-- | glanceclient/v2/shell.py | 3 |
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 |