shouldn't

Bug #1722438 reported by Liusheng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-moganclient
Fix Released
Undecided
Liusheng

Bug Description

when a non-admin user listing flavors, it will show like following, as for non-admin users, the "resources" and "resource_aggregates" won't be displayed. it is better to avoid show empty fields for that. and also for flavor show.

+--------------------------------------+-----------------------------------+-----------+---------------------------------+-----------+
| UUID | Name | Is Public | Description | Resources |
+--------------------------------------+-----------------------------------+-----------+---------------------------------+-----------+
| 9ead8794-fa88-4088-845e-f476b5294ff3 | baremetal_1cpu_1280mbram_10gbdisk | True | CPU: 1, RAM: 1280MB, DISK: 10GB | |
+--------------------------------------+-----------------------------------+-----------+---------------------------------+-----------+

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-moganclient (master)

Fix proposed to branch: master
Review: https://review.openstack.org/510724

Changed in python-moganclient:
assignee: nobody → Liusheng (liusheng)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to python-moganclient (master)

Reviewed: https://review.openstack.org/510724
Committed: https://git.openstack.org/cgit/openstack/python-moganclient/commit/?id=9c3ae09c320e3a0df4e64ac85f7b965db3b39d97
Submitter: Jenkins
Branch: master

commit 9c3ae09c320e3a0df4e64ac85f7b965db3b39d97
Author: liusheng <email address hidden>
Date: Tue Oct 10 11:14:21 2017 +0800

    Don't show empty columns if no column data for non-admin users

    For listing flavor and showing flavor commands by non-admin users, it will
    show empty columns of "resources" and "resource_aggregates" fields,
    because they are invisible for common users. It's better to avoid show the
    empty columns.

    Change-Id: If85a9f5711859030234f4159c9011459bbe4287b
    Closes-Bug: #1722438

Changed in python-moganclient:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.