Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Improve the format of "tenant access ls" output #682

Closed
shaominchen opened this issue Nov 2, 2016 · 1 comment
Closed

Improve the format of "tenant access ls" output #682

shaominchen opened this issue Nov 2, 2016 · 1 comment
Milestone

Comments

@shaominchen
Copy link
Contributor

Currently the "tenant access ls" output shows like this:

[root@localhost:/usr/lib/vmware/vmdkops/bin] vmdkops_admin tenant access ls --name MyTenant
Datastore Create_volume Delete_volume Mount_volume Max_volume_size Total_size


datastore1 1 1 0 128.00MB 1.00GB

The create/delete/mount privileges should be shown as boolean values ("True" and "False") instead of 1 and 0. Even though the backend db schema type is INTEGER (SQLite doesn't support Boolean), we should be able to convert the output format very easily.

This is not a correctness issue, but I think it's not user friendly and affects the usability a little bit.

@kerneltime
Copy link
Contributor

I was about to file the same issue :-)

[root@localhost:~]  /usr/lib/vmware/vmdkops/bin/vmdkops_admin.py tenant access ls --name tenant1
Datastore   Create_volume  Delete_volume  Mount_volume  Max_volume_size  Total_size  
----------  -------------  -------------  ------------  ---------------  ----------  
datastore1  1              1              1             0B               0B   

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

3 participants