mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 21:31:26 -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
|
@ -53,8 +53,8 @@ options:
|
|||
description:
|
||||
- Name of the cluster.
|
||||
- Required if I(state=present) and host does not yet exist.
|
||||
- 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, VMware, BareMetal, XenServer, LXC, HyperV, UCS, OVM, Simulator ]
|
||||
allocation_state:
|
||||
description:
|
||||
- Allocation state of the host.
|
||||
|
@ -330,7 +330,6 @@ from ansible.module_utils.cloudstack import (
|
|||
AnsibleCloudStack,
|
||||
cs_argument_spec,
|
||||
cs_required_together,
|
||||
CS_HYPERVISORS
|
||||
)
|
||||
import time
|
||||
|
||||
|
@ -592,7 +591,7 @@ def main():
|
|||
url=dict(),
|
||||
password=dict(no_log=True),
|
||||
username=dict(),
|
||||
hypervisor=dict(choices=CS_HYPERVISORS),
|
||||
hypervisor=dict(),
|
||||
allocation_state=dict(choices=['enabled', 'disabled', 'maintenance']),
|
||||
pod=dict(),
|
||||
cluster=dict(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue