when creating a new droplet I sometimes get the following error:
Traceback (most recent call last):
File "create_droplets.py", line 20, in <module>
create_droplet(a_group + '1')
File "create_droplets.py", line 13, in create_droplet
a_droplet = do.new_droplet( name, '512mb', 'ubuntu-14-04-x64', 'ams3', ssh_key_ids=['do-senacor'])
File "/Users/vvolle/workspaces/net/dopy/dopy/manager.py", line 54, in new_droplet
json = self.show_droplet(created_id)
File "/Users/vvolle/workspaces/net/dopy/dopy/manager.py", line 75, in show_droplet
json['droplet'][u'ip_address'] = json['droplet']['networks']['v4'][0]['ip_address']
IndexError: list index out of range
after creating the droplet, you seem to query the droplet immediately, but the networks might not yet have been set:
(using API V2):
when creating a new droplet I sometimes get the following error:
after creating the droplet, you seem to query the droplet immediately, but the networks might not yet have been set: