Repository: libcloud Updated Branches: refs/heads/trunk 930d05a43 -> 341ceb11e
CLOUDSTACK: Minor fix for start-vm option Closes #377 Signed-off-by: Tomaz Muraus <to...@apache.org> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/341ceb11 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/341ceb11 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/341ceb11 Branch: refs/heads/trunk Commit: 341ceb11e777942a3a343bf49a276142a67e4a2d Parents: 930d05a Author: Roeland Kuipers <rkuip...@schubergphilis.com> Authored: Mon Oct 20 12:12:45 2014 +0200 Committer: Tomaz Muraus <to...@apache.org> Committed: Wed Oct 22 15:27:37 2014 +0800 ---------------------------------------------------------------------- libcloud/compute/drivers/cloudstack.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/341ceb11/libcloud/compute/drivers/cloudstack.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/cloudstack.py b/libcloud/compute/drivers/cloudstack.py index a9d7169..fa10fb1 100644 --- a/libcloud/compute/drivers/cloudstack.py +++ b/libcloud/compute/drivers/cloudstack.py @@ -953,7 +953,9 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver): :type ex_ip_address: ``str`` :keyword ex_start_vm: Boolean to specify to start VM after creation - Defaults to True + Default Cloudstack behaviour is to start a VM, + if not specified. + :type ex_start_vm: ``bool`` :rtype: :class:`.CloudStackNode` @@ -1027,7 +1029,7 @@ class CloudStackNodeDriver(CloudStackDriverMixIn, NodeDriver): if ex_ip_address: server_params['ipaddress'] = ex_ip_address - if ex_start_vm is False: + if ex_start_vm is not None: server_params['startvm'] = ex_start_vm return server_params