libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject [1/4] libcloud git commit: reordered the element creation to fix the issue when pool member is created with the port
Date Wed, 13 Apr 2016 11:40:23 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 48a3fb906 -> bd6fa8dd3


reordered the element creation to fix the issue when pool member is created with the port


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

Branch: refs/heads/trunk
Commit: 0c3f6af4f7120fd0a44030bc468f590f711d98fe
Parents: 6cf6b12
Author: kumar Chockalingam <kumarappanc@gmail.com>
Authored: Wed Mar 2 12:17:51 2016 +1100
Committer: kumar Chockalingam <kumarappanc@gmail.com>
Committed: Wed Mar 2 12:17:51 2016 +1100

----------------------------------------------------------------------
 libcloud/loadbalancer/drivers/dimensiondata.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/0c3f6af4/libcloud/loadbalancer/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/loadbalancer/drivers/dimensiondata.py b/libcloud/loadbalancer/drivers/dimensiondata.py
index 2508fca..9fd0143 100644
--- a/libcloud/loadbalancer/drivers/dimensiondata.py
+++ b/libcloud/loadbalancer/drivers/dimensiondata.py
@@ -340,9 +340,9 @@ class DimensionDataLBDriver(Driver):
         create_pool_m = ET.Element('addPoolMember', {'xmlns': TYPES_URN})
         ET.SubElement(create_pool_m, "poolId").text = pool.id
         ET.SubElement(create_pool_m, "nodeId").text = node.id
-        ET.SubElement(create_pool_m, "status").text = 'ENABLED'
         if port is not None:
             ET.SubElement(create_pool_m, "port").text = str(port)
+        ET.SubElement(create_pool_m, "status").text = 'ENABLED'
 
         response = self.connection.request_with_orgId_api_2(
             'networkDomainVip/addPoolMember',


Mime
View raw message