inconsistencies in openstack table columns using CLI

asked 2018-05-09 13:37:22 -0500

theque42 gravatar image

I dont know if I am misunderstanding something, but I find this to be quite confusing, when it comes to the requirement on case-sensitivity on column names in CLI output...

[root@compute2 ~(admin)]# oo user list -c Name -c id --project admin
+-------+
| Name  |
+-------+
| admin |
+-------+
[lab0]:admin@admin
[root@compute2 ~(admin)]# oo user list -c Name -c ID --project admin
+----------------------------------+-------+
| ID                               | Name  |
+----------------------------------+-------+
| 99c5644b334b458e95f3f135f7b426cf | admin |
+----------------------------------+-------+
[lab0]:admin@admin
[root@compute2 ~(admin)]# oo user list -c Name -c id --project admin
+-------+
| Name  |
+-------+
| admin |
+-------+
[lab0]:admin@admin
[root@compute2 ~(admin)]# oo user show admin -c Name -c id
+-------+----------------------------------+
| Field | Value                            |
+-------+----------------------------------+
| id    | 99c5644b334b458e95f3f135f7b426cf |
+-------+----------------------------------+
[lab0]:admin@admin
[root@compute2 ~(admin)]# oo user show admin -c Name -c ID
No recognized column names in [u'Name', u'ID']. Recognized columns are (u'domain_id', u'enabled', u'id', u'name', u'options', u'password_expires_at').

Personally I would prefer case-insensitivity, but if not, then should it not at least be consistent?

edit retag flag offensive close merge delete