libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [3/6] libcloud git commit: removed the variable assignment by mistake
Date Mon, 06 Jun 2016 12:42:58 GMT
removed the variable assignment by mistake


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

Branch: refs/heads/trunk
Commit: 225d433edcb1e0a4cfeae429f6711f5c6fb603bb
Parents: 6401a45
Author: kumar Chockalingam <kumarappanc@gmail.com>
Authored: Tue May 17 09:18:32 2016 +1000
Committer: anthony-shaw <anthonyshaw@apache.org>
Committed: Mon Jun 6 22:42:28 2016 +1000

----------------------------------------------------------------------
 libcloud/compute/drivers/dimensiondata.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/225d433e/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 0f0ea17..13a7a1c 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -2425,8 +2425,12 @@ class DimensionDataNodeDriver(NodeDriver):
             status=findtext(element, 'state', TYPES_URN))
 
     def _to_firewall_address(self, element):
+        ip = element.find(fixxpath('ip', TYPES_URN))
+        port = element.find(fixxpath('port', TYPES_URN))
+        port_list = element.find(fixxpath('portList', TYPES_URN))
+        address_list = element.find(fixxpath('ipAddressList', TYPES_URN))
         if address_list is None:
-            return DimensionDataFirewallAddress(
+            return DimensionDataFirewallAddress (
                 any_ip=ip.get('address') == 'ANY',
                 ip_address=ip.get('address'),
                 ip_prefix_size=ip.get('prefixSize'),


Mime
View raw message