libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [05/24] libcloud git commit: Updated format to pass tests
Date Mon, 05 Sep 2016 11:56:45 GMT
Updated format to pass tests


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

Branch: refs/heads/trunk
Commit: 114d3b291db990e3ee4b6002e803628ae864809d
Parents: 88537bb
Author: mikeoutland-nexusis <mike.outland@nexusis.com>
Authored: Fri Aug 26 16:03:10 2016 -0700
Committer: mikeoutland-nexusis <mike.outland@nexusis.com>
Committed: Fri Aug 26 16:03:10 2016 -0700

----------------------------------------------------------------------
 libcloud/loadbalancer/drivers/dimensiondata.py | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/114d3b29/libcloud/loadbalancer/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/dimensiondata.py b/libcloud/loadbalancer/drivers/dimensiondata.py
index 00d33bd..1273540 100644
--- a/libcloud/loadbalancer/drivers/dimensiondata.py
+++ b/libcloud/loadbalancer/drivers/dimensiondata.py
@@ -188,12 +188,12 @@ class DimensionDataLBDriver(Driver):
         """
         params = None
         if ex_network_domain_id is not None:
-            params = { "networkDomainId": ex_network_domain_id }
+            params = {"networkDomainId": ex_network_domain_id}
 
         return self._to_balancers(
             self.connection
-            .request_with_orgId_api_2('networkDomainVip/virtualListener', params=params)
-            .object)
+            .request_with_orgId_api_2('networkDomainVip/virtualListener', \
+            params=params).object)
 
     def get_balancer(self, balancer_id):
         """
@@ -708,10 +708,11 @@ class DimensionDataLBDriver(Driver):
         """
         params = None
         if ex_network_domain_id is not None:
-            params = { "networkDomainId": ex_network_domain_id }
+            params = {"networkDomainId": ex_network_domain_id}
 
         pools = self.connection \
-            .request_with_orgId_api_2('networkDomainVip/pool', params=params).object
+            .request_with_orgId_api_2('networkDomainVip/pool', \
+            params=params).object
         return self._to_pools(pools)
 
     def ex_get_pool(self, pool_id):
@@ -865,10 +866,11 @@ class DimensionDataLBDriver(Driver):
         """
         params = None
         if ex_network_domain_id is not None:
-            params = { "networkDomainId": ex_network_domain_id }
+            params = {"networkDomainId": ex_network_domain_id}
 
         nodes = self.connection \
-            .request_with_orgId_api_2('networkDomainVip/node', params=params).object
+            .request_with_orgId_api_2('networkDomainVip/node', \
+            params=params).object
         return self._to_nodes(nodes)
 
     def ex_get_node(self, node_id):


Mime
View raw message