python-glanceclient/glanceclient/v2
Cyril Roelandt e2190c4feb do_image_import: fix argument retrieval
The argparse module automatically replaces '-' characters with '_'
characters when converting an option string to an attribute:

«For optional argument actions, the value of dest is normally inferred
from the option strings. ArgumentParser generates the value of dest by
taking the first long option string and stripping away the initial --
string. If no long option strings were supplied, dest will be derived
from the first short option string by stripping the initial - character.
Any internal - characters will be converted to _ characters to make sure
the string is a valid attribute name.»[1]

This means that the value of the "--remote-region" option of the
"image-import" command will be available as "args.remote_region";
"remote-region" would not be a valid attribute anyway.

We make sure to retrieve the proper value for the following
options: --remote-region, --remote-image-id and
--remote-service-interface.

[1] https://docs.python.org/3/library/argparse.html#dest

Change-Id: I1d8c69acd5d61fdc426469cd87d1ace81871e60f
Partial-Bug: #2012442
2023-04-18 03:21:03 +02:00
..
__init__.py Fix an issue with broken test on ci 2015-07-13 17:54:41 +03:00
cache.py Add support for Cache API 2022-02-22 16:39:33 +00:00
client.py Add support for Cache API 2022-02-22 16:39:33 +00:00
image_members.py Add member-get command 2021-08-02 09:08:50 +00:00
image_schema.py Add support for hide old images 2018-07-25 10:27:28 -04:00
image_tags.py Add request id to returned objects 2017-01-20 14:50:42 +05:30
images.py Merge "Add support for glance-download import method" 2022-08-30 14:57:55 +00:00
info.py Add support for usage API 2022-01-31 13:27:54 -08:00
metadefs.py Add an optional parameter --append 2022-02-16 14:00:28 +00:00
namespace_schema.py Ship the default metadata schema in the client 2016-03-24 09:04:20 +00:00
resource_type_schema.py update doc url to new 2018-08-16 08:22:42 +08:00
schemas.py Replace six.iteritems() with .items() 2017-02-08 16:33:46 +08:00
shell.py do_image_import: fix argument retrieval 2023-04-18 03:21:03 +02:00
tasks.py Do not use the six library. 2020-06-23 21:51:07 +02:00
versions.py Add versions list function 2015-11-10 10:28:32 +08:00