It looks OK, You commit the code, Let it get reviewed on gerrit.
Thanks,
Ashish.
On Thu, Dec 10, 2015 at 5:32 PM, Raga lahari <email address hidden> wrote:
> Hi,
>
> To validate tenant name in novaclient for the command "nova quota-show
> --tenant <name>",Need to get the tenant list from keystoneclient. We are
> planning to implement following solution to get tenant list
>
> from keystoneclient import session
> from keystoneclient.v2_0 import client as kclient
>
> def _tenant_list(cs):
> sess = session.Session(cs.client.auth)
> kc = kclient.Client(session=sess)
> tenant_list = kc.tenants.list()
> tenants = dict((x.id, x.name) for x in tenant_list)
>
> Please let me know your comments.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1522713
>
> Title:
> No validation for project name while quota show
>
> Status in python-novaclient:
> New
>
> Bug description:
> Hi All,
>
> There is no validation for tenant name with quota show, It just displays
> the default quota.
> root@admin-mon-node1-osd0:~# nova quota-show kjadshfk
>
> It should throw some exception if there is wrong tenant name with nova
> quota show
> Thanks,
> Ashish
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/python-novaclient/+bug/1522713/+subscriptions
>
Hi Raga,
It looks OK, You commit the code, Let it get reviewed on gerrit.
Thanks,
Ashish.
On Thu, Dec 10, 2015 at 5:32 PM, Raga lahari <email address hidden> wrote:
> Hi, Session( cs.client. auth) Client( session= sess) /bugs.launchpad .net/bugs/ 1522713 mon-node1- osd0:~# nova quota-show kjadshfk /bugs.launchpad .net/python- novaclient/ +bug/1522713/ +subscriptions
>
> To validate tenant name in novaclient for the command "nova quota-show
> --tenant <name>",Need to get the tenant list from keystoneclient. We are
> planning to implement following solution to get tenant list
>
> from keystoneclient import session
> from keystoneclient.v2_0 import client as kclient
>
> def _tenant_list(cs):
> sess = session.
> kc = kclient.
> tenant_list = kc.tenants.list()
> tenants = dict((x.id, x.name) for x in tenant_list)
>
> Please let me know your comments.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https:/
>
> Title:
> No validation for project name while quota show
>
> Status in python-novaclient:
> New
>
> Bug description:
> Hi All,
>
> There is no validation for tenant name with quota show, It just displays
> the default quota.
> root@admin-
>
> It should throw some exception if there is wrong tenant name with nova
> quota show
> Thanks,
> Ashish
>
> To manage notifications about this bug go to:
> https:/
>