Wiredcraft / dopy

Digital Ocean Python
MIT License
95 stars 62 forks source link

IP Address location is hard coded #32

Closed cvallance closed 9 years ago

cvallance commented 9 years ago

In both all_active_droplets and show_droplet the ip address location in the array is hard coded... i.e.

json['droplet'][u'ip_address'] = json['droplet']['networks']['v4'][0]['ip_address']

When private networking is enabled, the location of the public ip can vary, so we need to test the network type before assigning the ip address.