mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 11:40:22 -07:00
cloudstack: fix E326 (#54657)
* cloudstack: remove choice list for hypervisor param * cloudstack: streamline network_type with returned value by the API * cloudstack: remove E326 * add changelog fragment
This commit is contained in:
parent
833512b07c
commit
01f63ee871
16 changed files with 35 additions and 69 deletions
|
@ -121,26 +121,8 @@ options:
|
|||
description:
|
||||
- Name the hypervisor to be used for creating the new template.
|
||||
- Relevant when using I(state=present).
|
||||
- Possible values are C(KVM), C(VMware), C(BareMetal), C(XenServer), C(LXC), C(HyperV), C(UCS), C(OVM), C(Simulator).
|
||||
type: str
|
||||
choices:
|
||||
- KVM
|
||||
- kvm
|
||||
- VMware
|
||||
- vmware
|
||||
- BareMetal
|
||||
- baremetal
|
||||
- XenServer
|
||||
- xenserver
|
||||
- LXC
|
||||
- lxc
|
||||
- HyperV
|
||||
- hyperv
|
||||
- UCS
|
||||
- ucs
|
||||
- OVM
|
||||
- ovm
|
||||
- Simulator
|
||||
- simulator
|
||||
requires_hvm:
|
||||
description:
|
||||
- Whether the template requires HVM or not.
|
||||
|
@ -400,7 +382,6 @@ from ansible.module_utils.cloudstack import (
|
|||
AnsibleCloudStack,
|
||||
cs_argument_spec,
|
||||
cs_required_together,
|
||||
CS_HYPERVISORS
|
||||
)
|
||||
|
||||
|
||||
|
@ -712,7 +693,7 @@ def main():
|
|||
checksum=dict(),
|
||||
template_filter=dict(default='self', choices=['all', 'featured', 'self', 'selfexecutable', 'sharedexecutable', 'executable', 'community']),
|
||||
template_find_options=dict(type='list', choices=['display_text', 'checksum', 'cross_zones'], aliases=['template_find_option'], default=[]),
|
||||
hypervisor=dict(choices=CS_HYPERVISORS),
|
||||
hypervisor=dict(),
|
||||
requires_hvm=dict(type='bool'),
|
||||
password_enabled=dict(type='bool'),
|
||||
template_tag=dict(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue