From 38da8b4e8549307d79fd76734ed5993451ce7b49 Mon Sep 17 00:00:00 2001 From: Anthony Young Date: Wed, 24 Aug 2011 20:29:35 -0700 Subject: [PATCH] make __repr__ more useful with default behavior, rather than juse displaying id --- novaclient/v1_1/security_group_rules.py | 4 ---- novaclient/v1_1/security_groups.py | 4 ---- 2 files changed, 8 deletions(-) diff --git a/novaclient/v1_1/security_group_rules.py b/novaclient/v1_1/security_group_rules.py index 86e6fac54..2cf1e6bc3 100644 --- a/novaclient/v1_1/security_group_rules.py +++ b/novaclient/v1_1/security_group_rules.py @@ -21,10 +21,6 @@ from novaclient import base class SecurityGroupRule(base.Resource): - - def __repr__(self): - return "" % self.id - def __str__(self): return str(self.id) diff --git a/novaclient/v1_1/security_groups.py b/novaclient/v1_1/security_groups.py index f580cf2dc..9e737c0a5 100644 --- a/novaclient/v1_1/security_groups.py +++ b/novaclient/v1_1/security_groups.py @@ -21,10 +21,6 @@ from novaclient import base class SecurityGroup(base.Resource): - - def __repr__(self): - return "" % self.id - def __str__(self): return str(self.id)