Modify representation for some objects

Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/5a0f8c95
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/5a0f8c95
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/5a0f8c95

Branch: refs/heads/trunk
Commit: 5a0f8c95e253025229f2ed1e8e80ea4c4f142d60
Parents: 4a0ff85
Author: Ming Sheng <mingshen...@gmail.com>
Authored: Thu Dec 31 19:50:23 2015 +0800
Committer: Ming Sheng <mingshen...@gmail.com>
Committed: Thu Dec 31 19:50:23 2015 +0800

----------------------------------------------------------------------
 libcloud/common/dimensiondata.py | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/5a0f8c95/libcloud/common/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/common/dimensiondata.py b/libcloud/common/dimensiondata.py
index 573afe3..58311d4 100644
--- a/libcloud/common/dimensiondata.py
+++ b/libcloud/common/dimensiondata.py
@@ -419,10 +419,14 @@ class DimensionDataFirewallRule(object):
         self.enabled = enabled
 
     def __repr__(self):
-        return (('<DimensionDataNetworkDomain: id=%s, name=%s, '
-                 'action=%s, location=%s, status=%s>')
+        return (('<DimensionDataFirewallRule: id=%s, name=%s, '
+                 'action=%s, location=%s, network_domain=%s, '
+                 'status=%s, ip_version=%s, protocol=%s, source=%s, '
+                 'destination=%s, enabled=%s>')
                 % (self.id, self.name, self.action, self.location,
-                   self.status))
+                   self.network_domain, self.status, self.ip_version,
+                   self.protocol, self.source, self.destination,
+                   self.enabled))
 
 
 class DimensionDataFirewallAddress(object):
@@ -611,7 +615,7 @@ class DimensionDataPoolMember(object):
         self.node_id = node_id
 
     def __repr__(self):
-        return (('<DimensionDataPool: id=%s, name=%s, '
+        return (('<DimensionDataPoolMember: id=%s, name=%s, '
                  'ip=%s, status=%s, port=%s, node_id=%s>')
                 % (self.id, self.name,
                    self.ip, self.status, self.port,
@@ -683,7 +687,7 @@ class DimensionDataVirtualListener(object):
         self.ip = ip
 
     def __repr__(self):
-        return (('<DimensionDataPool: id=%s, name=%s, '
+        return (('<DimensionDataVirtualListener: id=%s, name=%s, '
                  'status=%s, ip=%s>')
                 % (self.id, self.name,
                    self.status, self.ip))

Reply via email to