diff options
| author | Jens Rosenboom <j.rosenboom@x-ion.de> | 2017-01-05 12:34:43 +0100 |
|---|---|---|
| committer | Jens Rosenboom <j.rosenboom@x-ion.de> | 2017-01-05 15:58:47 +0100 |
| commit | d8749f9148f2a78f28e91c58e698779735eae4dc (patch) | |
| tree | 349eb63eee3b7c241d9cee13fda69b3c505e61e3 /openstackclient/compute | |
| parent | 82e69428f55a24a51965958c90429ca139b6cb50 (diff) | |
| download | python-openstackclient-d8749f9148f2a78f28e91c58e698779735eae4dc.tar.gz | |
Fix creating a private flavor with ID auto
When a private flavor is created with ID auto (=default) and a project
is specified for it, instead of trying to add the project to the flavor
called "auto" the ID of the newly created project should be used.
Change-Id: I19f7a0ec26bd5d147f00ecba3312240e3601567e
Closes-Bug: 1654221
Diffstat (limited to 'openstackclient/compute')
| -rw-r--r-- | openstackclient/compute/v2/flavor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openstackclient/compute/v2/flavor.py b/openstackclient/compute/v2/flavor.py index f20d154b..e562cd40 100644 --- a/openstackclient/compute/v2/flavor.py +++ b/openstackclient/compute/v2/flavor.py @@ -167,7 +167,7 @@ class CreateFlavor(command.ShowOne): parsed_args.project_domain, ).id compute_client.flavor_access.add_tenant_access( - parsed_args.id, project_id) + flavor.id, project_id) except Exception as e: msg = _("Failed to add project %(project)s access to " "flavor: %(e)s") |
