Tidy up sanity checks ignore lines modules (batch 7) (#1970)

* fixed validation-modules for plugins/modules/cloud/heroku/heroku_collaborator.py

* fixed validation-modules for plugins/modules/cloud/linode/linode_v4.py

* fixed validation-modules for plugins/modules/remote_management/manageiq/manageiq_provider.py

* fixed validation-modules for plugins/modules/remote_management/manageiq/manageiq_policies.py

* fixed validation-modules for plugins/modules/remote_management/manageiq/manageiq_alert_profiles.py

* fixed validation-modules for plugins/modules/remote_management/manageiq/manageiq_tags.py

* fixed validation-modules for plugins/modules/cloud/opennebula/one_host.py

* fixed validation-modules for plugins/modules/cloud/opennebula/one_image_info.py

* fixed validation-modules for plugins/modules/cloud/opennebula/one_vm.py

* fixed validation-modules for plugins/modules/cloud/scaleway/scaleway_lb.py

* fixed validation-modules for plugins/modules/cloud/scaleway/scaleway_compute.py

* fixed validation-modules for plugins/modules/remote_management/oneview/oneview_network_set_info.py

* fixed validation-modules for plugins/modules/remote_management/oneview/oneview_ethernet_network_info.py

* fixed validation-modules for plugins/modules/remote_management/oneview/oneview_datacenter_info.py

* fixed validation-modules for plugins/modules/remote_management/oneview/oneview_enclosure_info.py

* Tidy up sanity checks ignore lines modules (batch 7)

* added changelog fragment

* Missed a couple of lines in ingnore-2.11.txt

* fixed validation-modules for plugins/modules/cloud/packet/packet_volume_attachment.py

* Adjusted ignore files and changelog for packet_volume_attachment.py

* Rolled back ignore line for linode module

* Update plugins/modules/cloud/opennebula/one_image_info.py

Co-authored-by: Felix Fontein <felix@fontein.de>

* fixes from the PR

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2021-03-08 20:35:09 +13:00 committed by GitHub
commit 2906591c08
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 85 additions and 75 deletions

View file

@ -40,6 +40,7 @@ options:
'ExtManagementSystem', 'MiddlewareServer']
alerts:
type: list
elements: str
description:
- List of alert descriptions to assign to this profile.
- Required if state is "present"
@ -257,7 +258,7 @@ def main():
'EmsCluster',
'ExtManagementSystem',
'MiddlewareServer']),
alerts=dict(type='list'),
alerts=dict(type='list', elements='str'),
notes=dict(type='str'),
state=dict(default='present', choices=['present', 'absent']),
)

View file

@ -31,6 +31,7 @@ options:
default: 'present'
policy_profiles:
type: list
elements: dict
description:
- list of dictionaries, each includes the policy_profile 'name' key.
- required if state is present or absent.
@ -301,7 +302,7 @@ class ManageIQPolicies(object):
def main():
actions = {'present': 'assign', 'absent': 'unassign', 'list': 'list'}
argument_spec = dict(
policy_profiles=dict(type='list'),
policy_profiles=dict(type='list', elements='dict'),
resource_id=dict(required=False, type='int'),
resource_name=dict(required=False, type='str'),
resource_type=dict(required=True, type='str',

View file

@ -829,7 +829,7 @@ def main():
azure_tenant_id=dict(aliases=['keystone_v3_domain_id']),
tenant_mapping_enabled=dict(default=False, type='bool'),
api_version=dict(choices=['v2', 'v3']),
type=dict(choices=supported_providers().keys()),
type=dict(choices=list(supported_providers().keys())),
)
# add the manageiq connection arguments to the arguments
argument_spec.update(manageiq_argument_spec())

View file

@ -31,6 +31,7 @@ options:
default: 'present'
tags:
type: list
elements: dict
description:
- tags - list of dictionaries, each includes 'name' and 'category' keys.
- required if state is present or absent.
@ -261,7 +262,7 @@ class ManageIQTags(object):
def main():
actions = {'present': 'assign', 'absent': 'unassign', 'list': 'list'}
argument_spec = dict(
tags=dict(type='list'),
tags=dict(type='list', elements='dict'),
resource_id=dict(required=False, type='int'),
resource_name=dict(required=False, type='str'),
resource_type=dict(required=True, type='str',

View file

@ -27,6 +27,8 @@ options:
options:
description:
- "Retrieve additional information. Options available: 'visualContent'."
type: list
elements: str
extends_documentation_fragment:
- community.general.oneview
@ -108,7 +110,7 @@ from ansible_collections.community.general.plugins.module_utils.oneview import O
class DatacenterInfoModule(OneViewModuleBase):
argument_spec = dict(
name=dict(type='str'),
options=dict(type='list'),
options=dict(type='list', elements='str'),
params=dict(type='dict')
)

View file

@ -29,6 +29,8 @@ options:
- "List with options to gather additional information about an Enclosure and related resources.
Options allowed: C(script), C(environmentalConfiguration), and C(utilization). For the option C(utilization),
you can provide specific parameters."
type: list
elements: raw
extends_documentation_fragment:
- community.general.oneview
@ -153,7 +155,11 @@ from ansible_collections.community.general.plugins.module_utils.oneview import O
class EnclosureInfoModule(OneViewModuleBase):
argument_spec = dict(name=dict(type='str'), options=dict(type='list'), params=dict(type='dict'))
argument_spec = dict(
name=dict(type='str'),
options=dict(type='list', elements='raw'),
params=dict(type='dict')
)
def __init__(self):
super(EnclosureInfoModule, self).__init__(additional_arg_spec=self.argument_spec)

View file

@ -27,6 +27,8 @@ options:
description:
- "List with options to gather additional information about an Ethernet Network and related resources.
Options allowed: C(associatedProfiles) and C(associatedUplinkGroups)."
type: list
elements: str
extends_documentation_fragment:
- community.general.oneview
- community.general.oneview.factsparams
@ -106,7 +108,7 @@ from ansible_collections.community.general.plugins.module_utils.oneview import O
class EthernetNetworkInfoModule(OneViewModuleBase):
argument_spec = dict(
name=dict(type='str'),
options=dict(type='list'),
options=dict(type='list', elements='str'),
params=dict(type='dict')
)

View file

@ -29,6 +29,8 @@ options:
- "List with options to gather information about Network Set.
Option allowed: C(withoutEthernet).
The option C(withoutEthernet) retrieves the list of network_sets excluding Ethernet networks."
type: list
elements: str
extends_documentation_fragment:
- community.general.oneview
@ -127,7 +129,7 @@ from ansible_collections.community.general.plugins.module_utils.oneview import O
class NetworkSetInfoModule(OneViewModuleBase):
argument_spec = dict(
name=dict(type='str'),
options=dict(type='list'),
options=dict(type='list', elements='str'),
params=dict(type='dict'),
)