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
2023-02-16 09:19:07 +00:00
2021-09-15 04:33:07 -04:00
2018-06-05 14:38:51 +00:00
2019-04-19 19:39:30 +00:00
2022-02-25 13:31:42 -08:00
2012-03-26 22:48:48 -07:00
2021-07-07 20:46:00 +08:00
2020-04-04 16:47:34 +02:00

========================
Team and repository tags
========================

.. image:: https://governance.openstack.org/tc/badges/python-glanceclient.svg
    :target: https://governance.openstack.org/tc/reference/tags/index.html
    :alt: The following tags have been asserted for Python bindings to the
          OpenStack Images API:
          "project:official",
          "stable:follows-policy",
          "vulnerability:managed".
          Follow the link for an explanation of these tags.
.. NOTE(rosmaita): the alt text above will have to be updated when
   additional tags are asserted for python-glanceclient.  (The SVG in the
   governance repo is updated automatically.)

.. Change things from this point on

===========================================
Python bindings to the OpenStack Images API
===========================================

.. image:: https://img.shields.io/pypi/v/python-glanceclient.svg
    :target: https://pypi.org/project/python-glanceclient/
    :alt: Latest Version

This is a client library for Glance built on the OpenStack Images API. It provides a Python API (the ``glanceclient`` module) and a command-line tool (``glance``). This library fully supports the v1 Images API, while support for the v2 API is in progress.

Development takes place via the usual OpenStack processes as outlined in the `developer guide <https://docs.openstack.org/infra/manual/developers.html>`_.  The master repository is in `Git <https://opendev.org/openstack/python-glanceclient>`_.

See release notes and more at `<https://docs.openstack.org/python-glanceclient/latest/>`_.

* License: Apache License, Version 2.0
* `PyPi`_ - package installation
* `Online Documentation`_
* `Launchpad project`_ - release management
* `Blueprints`_ - feature specifications
* `Bugs`_ - issue tracking
* `Source`_
* `Specs`_
* `How to Contribute`_

.. _PyPi: https://pypi.org/project/python-glanceclient
.. _Online Documentation: https://docs.openstack.org/python-glanceclient/latest/
.. _Launchpad project: https://launchpad.net/python-glanceclient
.. _Blueprints: https://blueprints.launchpad.net/python-glanceclient
.. _Bugs: https://bugs.launchpad.net/python-glanceclient
.. _Source: https://opendev.org/openstack/python-glanceclient
.. _How to Contribute: https://docs.openstack.org/infra/manual/developers.html
.. _Specs: https://specs.openstack.org/openstack/glance-specs/
.. _Release notes: https://docs.openstack.org/releasenotes/python-glanceclient
S
Description
No description provided
Readme 1.7 MiB
Languages
Python 99.4%
Shell 0.6%