Skip to content

Commit

Permalink
The class method to get the object from a specific ID does not requir…
Browse files Browse the repository at this point in the history
…ed the Droplet ID anymore.
  • Loading branch information
koalalorenzo committed Oct 7, 2014
1 parent fe7f780 commit d77c657
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions digitalocean/Action.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def __init__(self, *args, **kwargs):
super(Action, self).__init__(*args, **kwargs)

@classmethod
def get_object(cls, api_token, droplet_id, action_id):
def get_object(cls, api_token, action_id):
"""
Class method that will return a Action object by ID and Droplet ID.
Class method that will return a Action object by ID.
"""
action = cls(token=api_token, droplet_id=droplet_id, id=action_id)
action.load()
action = cls(token=api_token, id=action_id)
action.load_directly()
return action

def load_directly(self):
Expand Down

0 comments on commit d77c657

Please sign in to comment.