Ordering of elements matters Closes #691
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/a9c6ce47 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/a9c6ce47 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/a9c6ce47 Branch: refs/heads/trunk Commit: a9c6ce471481107076df8b42c8210296853fe964 Parents: ba3107c Author: Jeffrey Dunham <[email protected]> Authored: Sat Feb 6 01:44:58 2016 -0500 Committer: anthony-shaw <[email protected]> Committed: Sun Feb 7 19:47:37 2016 +1100 ---------------------------------------------------------------------- libcloud/compute/drivers/dimensiondata.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/a9c6ce47/libcloud/compute/drivers/dimensiondata.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index 543b9ff..5955058 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -150,14 +150,15 @@ class DimensionDataNodeDriver(NodeDriver): server_elm = ET.Element('deployServer', {'xmlns': TYPES_URN}) ET.SubElement(server_elm, "name").text = name ET.SubElement(server_elm, "description").text = ex_description - ET.SubElement(server_elm, "start").text = str(ex_is_started).lower() - ET.SubElement(server_elm, "administratorPassword").text = password if isinstance(image, NodeImage): ET.SubElement(server_elm, "imageId").text = image.id else: ET.SubElement(server_elm, "imageId").text = image + ET.SubElement(server_elm, "start").text = str(ex_is_started).lower() + ET.SubElement(server_elm, "administratorPassword").text = password + if ex_cpu_specification is not None: cpu = ET.SubElement(server_elm, "cpu") cpu.set('speed', ex_cpu_specification.performance)
