From ef019e61631396637d7fd61668d97a213c99823c Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Mon, 27 Apr 2015 00:05:41 +0200 Subject: [PATCH 1/2] cloudstack: fix missing zone param used in get_vm() in utils --- cloud/cloudstack/cs_vmsnapshot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cloud/cloudstack/cs_vmsnapshot.py b/cloud/cloudstack/cs_vmsnapshot.py index d53a33ac72e..7d9b47b56d8 100644 --- a/cloud/cloudstack/cs_vmsnapshot.py +++ b/cloud/cloudstack/cs_vmsnapshot.py @@ -41,6 +41,11 @@ options: - Snapshot memory if set to true. required: false default: false + zone: + description: + - Name of the zone in which the VM is in. If not set, default zone is used. + required: false + default: null project: description: - Name of the project the VM is assigned to. @@ -241,6 +246,7 @@ def main(): vm = dict(required=True), description = dict(default=None), project = dict(default=None), + zone = dict(default=None), snapshot_memory = dict(choices=BOOLEANS, default=False), state = dict(choices=['present', 'absent', 'revert'], default='present'), poll_async = dict(choices=BOOLEANS, default=True), From b0fb6b08a98665115ca4634d3351d67653cda4c4 Mon Sep 17 00:00:00 2001 From: Rene Moser Date: Mon, 27 Apr 2015 00:06:42 +0200 Subject: [PATCH 2/2] cloudstack: fix misssing doc about vm param --- cloud/cloudstack/cs_vmsnapshot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cloud/cloudstack/cs_vmsnapshot.py b/cloud/cloudstack/cs_vmsnapshot.py index 7d9b47b56d8..89c0ec081d6 100644 --- a/cloud/cloudstack/cs_vmsnapshot.py +++ b/cloud/cloudstack/cs_vmsnapshot.py @@ -31,6 +31,10 @@ options: - Unique Name of the snapshot. In CloudStack terms C(displayname). required: true aliases: ['displayname'] + vm: + description: + - Name of the virtual machine. + required: true description: description: - Description of the snapshot.