make __repr__ more useful with default behavior, rather than juse displaying id

This commit is contained in:
Anthony Young 2011-08-24 20:29:35 -07:00
parent 7357d3326d
commit 38da8b4e85
2 changed files with 0 additions and 8 deletions

View File

@ -21,10 +21,6 @@ from novaclient import base
class SecurityGroupRule(base.Resource):
def __repr__(self):
return "<Security_group_rule: %s>" % self.id
def __str__(self):
return str(self.id)

View File

@ -21,10 +21,6 @@ from novaclient import base
class SecurityGroup(base.Resource):
def __repr__(self):
return "<Security_group: %s>" % self.id
def __str__(self):
return str(self.id)