Skip to content

Commit c615bcd

Browse files
npraveen35jharbott
authored andcommitted
Display private flavors in server list
Update the code so that "openstack server list --all" also displays the names of private flavors. Change-Id: I4804fcd905eaf67b1ad9b461084eaf0caa820d2f Closes-Bug: #1742453
1 parent 7505831 commit c615bcd

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1162,7 +1162,7 @@ def take_action(self, parsed_args):
11621162
# "Flavor Name" is not crucial, so we swallow any exceptions.
11631163
if not parsed_args.no_name_lookup:
11641164
try:
1165-
flavors_list = compute_client.flavors.list()
1165+
flavors_list = compute_client.flavors.list(is_public=None)
11661166
for i in flavors_list:
11671167
flavors[i.id] = i
11681168
except Exception:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
fixes:
3+
- |
4+
The ``server list --all`` command now resolves non-public flavor names,
5+
too, so that the ``Flavor`` column will be properly populated.
6+
[Bug `1742453 <https://bugs.launchpad.net/bugs/1742453>`_]

0 commit comments

Comments
 (0)