libcloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sengor <seng...@gmail.com>
Subject Re: [libcloud] Image state not recognised within drivers/ibm_sbc.py
Date Tue, 31 Aug 2010 08:23:24 GMT
Thanks guys. Looks good now:

>>> from libcloud.types import Provider
>>> from libcloud.providers import get_driver
>>>
>>> driver=get_driver(Provider.IBM)
>>> conn = driver(".....", ".....")
>>> conn.list_nodes()
[<Node: uuid=...., name=test, state=0, public_ip=170.... ,
provider=IBM Developer Cloud ...>]
>>> conn.destroy_node(conn.list_nodes()[0])
True
>>> conn.list_nodes()
[<Node: uuid=...., name=test, state=3, public_ip=170..... ,
provider=IBM Developer Cloud ...>]
>>>

--
sengork

Mime
View raw message