host list not working

Bug #1513787 reported by balan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
In Progress
Undecided
Anusha

Bug Description

My code is,

from novaclient.v2.client import Client as nova_client
test_client = nova_client(username="admin",
                          api_key="******",
                          auth_url="http://192.168.1.177:5000/v2.0",
                          tenant_id="a00fd46d7cec4b91a57c2f69d8c860e5")
print test_client.hosts.list()

Trace Log,

/usr/bin/python2.7 /home/test.py
[Traceback (most recent call last):
  File "/home/test.py", line 53, in <module>
    print test_client.hosts.list()
  File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/hosts.py", line 24, in __repr__
    return "<Host: %s>" % self.host
  File "/usr/local/lib/python2.7/dist-packages/novaclient/openstack/common/apiclient/base.py", line 480, in __getattr__
    raise AttributeError(k)
AttributeError: host

Revision history for this message
balan (balan-u) wrote :
description: updated
Anusha (anusha-iiitm)
Changed in python-novaclient:
assignee: nobody → Anusha (anusha-iiitm)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to python-novaclient (master)

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

Changed in python-novaclient:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on python-novaclient (master)

Change abandoned by Anusha Ramineni (<email address hidden>) on branch: master
Review: https://review.openstack.org/243540

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

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