libcloud-notifications mailing list archives

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

Branch: refs/heads/trunk
Commit: 37bb40852e0cb0946edb77027adeffe8c9ea654d
Parents: 44340e1
Author: mikeoutland-nexusis <mike.outland@nexusis.com>
Authored: Fri Aug 26 16:03:10 2016 -0700
Committer: Anthony Shaw <anthonyshaw@apache.org>
Committed: Mon Sep 5 21:39:01 2016 +1000

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


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