Skip to content

Commit

Permalink
The creation response doesn't have the "actions" key
Browse files Browse the repository at this point in the history
Actions can be found in a "droplet" object.

action_ids	array	An array of action IDs of any actions that have
                        been taken on this Droplet.
  • Loading branch information
avagin committed Aug 16, 2014
1 parent d428dac commit adcb29a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions digitalocean/Droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ def create(self, ssh_keys=None, backups=False, ipv6=False, private_networking=Fa
if data:
self.id = data['droplet']['id']

self.action_ids = []
for id in data[u'droplet'][u'action_ids']:
self.action_ids.append(id)

def get_events(self):
"""
A helper function for backwards compatability.
Expand Down

0 comments on commit adcb29a

Please sign in to comment.