Skip to content

Commit

Permalink
The ssh key should return the ID and the name when used as string.
Browse files Browse the repository at this point in the history
  • Loading branch information
koalalorenzo committed Aug 16, 2014
1 parent 9503122 commit 5be26a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions digitalocean/SSHKey.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ def destroy(self):
"account/keys/%s" % self.id,
type="DELETE",
)

def __str__(self):
return "%s %s" % (self.id, self.name)

0 comments on commit 5be26a0

Please sign in to comment.