is there any documentation that I could use to incorporate it to my application?

Asked by Radomir

Hi,

Client works very well from line command but I was trying to use it in my own code. So I do like this:

>>> heat = Client('1', endpoint=heat_url, token=auth_token)
>>> o = SoftwareDeploymentManager(heat)
>>> o.list()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/heatclient/v1/software_deployments.py", line 37, in list
    return self._list(url, "software_deployments")
  File "/usr/lib/python2.7/site-packages/heatclient/openstack/common/apiclient/base.py", line 115, in _list
    body = self.client.get(url).json()
AttributeError: 'Client' object has no attribute 'get'
>>>

.. and I'm not even sure if I'm heading right direction...
so is there any documenation/example how I can use this lib?

Question information

Language:
English Edit question
Status:
Answered
For:
python-heatclient Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Yingzhe Zeng (zengyingzhe) said :
#1

Perhaps you can refer the OpenStack client code, find out how it uses heatclient.

Can you help with this problem?

Provide an answer of your own, or ask Radomir for more information if necessary.

To post a message you must log in.