Merge "Display private flavors in server list"

This commit is contained in:
Zuul 2018-06-29 13:57:45 +00:00 committed by Gerrit Code Review
commit 0ba5dcbc6a
2 changed files with 7 additions and 1 deletions

View File

@ -1240,7 +1240,7 @@ class ListServer(command.Lister):
# "Flavor Name" is not crucial, so we swallow any exceptions.
if not parsed_args.no_name_lookup:
try:
flavors_list = compute_client.flavors.list()
flavors_list = compute_client.flavors.list(is_public=None)
for i in flavors_list:
flavors[i.id] = i
except Exception:

View File

@ -0,0 +1,6 @@
---
fixes:
- |
The ``server list --all`` command now resolves non-public flavor names,
too, so that the ``Flavor`` column will be properly populated.
[Bug `1742453 <https://bugs.launchpad.net/bugs/1742453>`_]