Repository: libcloud Updated Branches: refs/heads/trunk af7376cd3 -> 8d012ca19
Making not adding the password more explicit Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/00f9e5fa Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/00f9e5fa Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/00f9e5fa Branch: refs/heads/trunk Commit: 00f9e5faa9e0967eef2745ce72dbb38f4f5d209c Parents: 1e57dcc Author: Jeffrey Dunham <jeffrey.a.dun...@gmail.com> Authored: Tue Mar 15 16:51:53 2016 -0400 Committer: anthony-shaw <anthony.p.s...@gmail.com> Committed: Wed Mar 16 09:09:00 2016 +1100 ---------------------------------------------------------------------- libcloud/compute/drivers/dimensiondata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/00f9e5fa/libcloud/compute/drivers/dimensiondata.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/dimensiondata.py b/libcloud/compute/drivers/dimensiondata.py index 55db541..7763f51 100644 --- a/libcloud/compute/drivers/dimensiondata.py +++ b/libcloud/compute/drivers/dimensiondata.py @@ -199,7 +199,8 @@ class DimensionDataNodeDriver(NodeDriver): image_id = self._image_to_image_id(image) ET.SubElement(server_elm, "imageId").text = image_id ET.SubElement(server_elm, "start").text = str(ex_is_started).lower() - ET.SubElement(server_elm, "administratorPassword").text = password + if password is not None: + ET.SubElement(server_elm, "administratorPassword").text = password if ex_cpu_specification is not None: cpu = ET.SubElement(server_elm, "cpu")