Skip to content

Commit

Permalink
Created a new get_action method that will return a specific Action by…
Browse files Browse the repository at this point in the history
… its ID.
  • Loading branch information
koalalorenzo committed Oct 7, 2014
1 parent dd59c07 commit bc22768
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions digitalocean/Droplet.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,16 @@ def get_actions(self):
actions.append(action)
return actions

def get_action(self, action_id):
"""
Returns a specific Action by its ID.
"""
return Action.get_object(
api_token=self.token,
droplet_id=self.id,
action_id=action_id
)

def get_snapshots(self):
"""
This method will return the snapshots/images connected to that
Expand Down

0 comments on commit bc22768

Please sign in to comment.