You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2015/12/09 11:19:29 UTC

[11/11] libcloud git commit: When creating node, cpu element must go before memoryGb.

When creating node, cpu element must go before memoryGb.

Signed-off-by: Anthony Shaw <an...@gmail.com>
Closes #656


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

Branch: refs/heads/trunk
Commit: f43570b9fd4536b8e8d8085c1eac457cad8900e6
Parents: 5d69076
Author: Anthony Shaw <an...@gmail.com>
Authored: Wed Dec 9 20:49:18 2015 +1100
Committer: Anthony Shaw <an...@gmail.com>
Committed: Wed Dec 9 21:19:24 2015 +1100

----------------------------------------------------------------------
 libcloud/compute/drivers/dimensiondata.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/f43570b9/libcloud/compute/drivers/dimensiondata.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py
index 8440baf..e195045 100644
--- a/libcloud/compute/drivers/dimensiondata.py
+++ b/libcloud/compute/drivers/dimensiondata.py
@@ -146,9 +146,6 @@ class DimensionDataNodeDriver(NodeDriver):
         ET.SubElement(server_elm, "start").text = str(ex_is_started).lower()
         ET.SubElement(server_elm, "administratorPassword").text = password
 
-        if ex_memory_gb is not None:
-            ET.SubElement(server_elm, "memoryGb").text = str(ex_memory_gb)
-
         if ex_cpu_specification is not None:
             cpu = ET.SubElement(server_elm, "cpu")
             cpu.set('speed', ex_cpu_specification.performance)
@@ -156,6 +153,9 @@ class DimensionDataNodeDriver(NodeDriver):
             cpu.set('coresPerSocket',
                     str(ex_cpu_specification.cores_per_socket))
 
+        if ex_memory_gb is not None:
+            ET.SubElement(server_elm, "memoryGb").text = str(ex_memory_gb)
+
         if ex_network is not None:
             network_elm = ET.SubElement(server_elm, "network")
             ET.SubElement(network_elm, "networkId").text = ex_network.id