Merge pull request #427 from resmo/fix/cs_vmsnapshot_missing_zone

cloudstack: fix missing zone param used in get_vm() in utils
This commit is contained in:
Brian Coca 2015-05-04 10:33:23 -04:00
commit 70ea058563

View file

@ -31,6 +31,10 @@ options:
- Unique Name of the snapshot. In CloudStack terms C(displayname). - Unique Name of the snapshot. In CloudStack terms C(displayname).
required: true required: true
aliases: ['displayname'] aliases: ['displayname']
vm:
description:
- Name of the virtual machine.
required: true
description: description:
description: description:
- Description of the snapshot. - Description of the snapshot.
@ -41,6 +45,11 @@ options:
- Snapshot memory if set to true. - Snapshot memory if set to true.
required: false required: false
default: 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: project:
description: description:
- Name of the project the VM is assigned to. - Name of the project the VM is assigned to.
@ -241,6 +250,7 @@ def main():
vm = dict(required=True), vm = dict(required=True),
description = dict(default=None), description = dict(default=None),
project = dict(default=None), project = dict(default=None),
zone = dict(default=None),
snapshot_memory = dict(choices=BOOLEANS, default=False), snapshot_memory = dict(choices=BOOLEANS, default=False),
state = dict(choices=['present', 'absent', 'revert'], default='present'), state = dict(choices=['present', 'absent', 'revert'], default='present'),
poll_async = dict(choices=BOOLEANS, default=True), poll_async = dict(choices=BOOLEANS, default=True),