update (refresh) subnet state after creation

9 views
Skip to first unread message

Florin Andrei

unread,
Mar 6, 2014, 7:56:59 PM3/6/14
to boto-...@googlegroups.com
Let's say I create a subnet and I want to make absolutely sure it's available before I move forward. But the state is always shown as 'pending' (while in reality it's clearly 'available' as I can see it in the Web GUI), and there's no update() for subnets. How do I update the state for a subnet object?

>>> subnet = {}
>>> subnet['public'] = conn.create_subnet(vpcid, '10.2.0.0/24')
>>> subnet['public'].state
u'pending'
>>> subnet['public'].update()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'Subnet' object has no attribute 'update'
>>> subnet['public'].state
u'pending'
Reply all
Reply to author
Forward
0 new messages