libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [13/24] libcloud git commit: Updated format to pass tests
Date Mon, 05 Sep 2016 11:56:53 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/208cee22
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/208cee22
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/208cee22

Branch: refs/heads/trunk
Commit: 208cee2278bd9ba09019045e9aa268403dce95e8
Parents: f5348a7
Author: mikeoutland-nexusis <mike.outland@nexusis.com>
Authored: Fri Aug 26 16:03:10 2016 -0700
Committer: Aimon Bustardo <aimon.bustardo@dimensiondata.com>
Committed: Sun Aug 28 13:52:29 2016 -0500

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


http://git-wip-us.apache.org/repos/asf/libcloud/blob/208cee22/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