libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anthonys...@apache.org
Subject libcloud git commit: reordered the element creation to fix the issue when pool member is created with the port Closes #719
Date Wed, 02 Mar 2016 02:46:17 GMT
Repository: libcloud
Updated Branches:
  refs/heads/trunk 2b24d774f -> 00f27cb6e


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


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

Branch: refs/heads/trunk
Commit: 00f27cb6e6e1334dffd23f1f596165e0cd717783
Parents: 2b24d77
Author: kumar Chockalingam <kumarappanc@gmail.com>
Authored: Wed Mar 2 12:17:51 2016 +1100
Committer: anthony-shaw <anthony.p.shaw@gmail.com>
Committed: Wed Mar 2 13:45:50 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/00f27cb6/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