1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Removed parameter-list-no-elements validation errors from redfish modules (#1761)

* Removed parameter-list-no-elements validation errors from redfish modules

* added changelog fragment per PR

* Update changelogs/fragments/1761-redfish-tidy-up-validation.yml

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

Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
Alexei Znamensky 2021-02-12 18:47:23 +13:00 committed by GitHub
parent 436bbb0077
commit ba4a98b1be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 16 additions and 19 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- redfish modules - explicitly setting lists' elements to ``str`` (https://github.com/ansible-collections/community.general/pull/1761).

View file

@ -26,6 +26,7 @@ options:
description:
- List of commands to execute on OOB controller
type: list
elements: str
baseuri:
required: true
description:
@ -134,7 +135,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
category=dict(required=True),
command=dict(required=True, type='list'),
command=dict(required=True, type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -29,6 +29,7 @@ options:
I(SetSystemAttributes) are mutually exclusive commands when C(category)
is I(Manager)
type: list
elements: str
baseuri:
required: true
description:
@ -245,7 +246,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
category=dict(required=True),
command=dict(required=True, type='list'),
command=dict(required=True, type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -30,6 +30,7 @@ options:
- C(GetManagerAttributes) returns the list of dicts containing iDRAC,
LifecycleController and System attributes
type: list
elements: str
baseuri:
required: true
description:
@ -171,7 +172,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
category=dict(required=True),
command=dict(required=True, type='list'),
command=dict(required=True, type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -28,6 +28,7 @@ options:
description:
- List of commands to execute on OOB controller
type: list
elements: str
baseuri:
required: true
description:
@ -550,7 +551,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
category=dict(required=True),
command=dict(required=True, type='list'),
command=dict(required=True, type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -27,6 +27,7 @@ options:
description:
- List of commands to execute on OOB controller
type: list
elements: str
baseuri:
required: true
description:
@ -228,7 +229,7 @@ def main():
module = AnsibleModule(
argument_spec=dict(
category=dict(required=True),
command=dict(required=True, type='list'),
command=dict(required=True, type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -24,11 +24,13 @@ options:
- List of categories to execute on OOB controller
default: ['Systems']
type: list
elements: str
command:
required: false
description:
- List of commands to execute on OOB controller
type: list
elements: str
baseuri:
required: true
description:
@ -296,8 +298,8 @@ def main():
category_list = []
module = AnsibleModule(
argument_spec=dict(
category=dict(type='list', default=['Systems']),
command=dict(type='list'),
category=dict(type='list', elements='str', default=['Systems']),
command=dict(type='list', elements='str'),
baseuri=dict(required=True),
username=dict(required=True),
password=dict(required=True, no_log=True),

View file

@ -290,12 +290,6 @@ plugins/modules/remote_management/oneview/oneview_san_manager.py validate-module
plugins/modules/remote_management/oneview/oneview_san_manager.py validate-modules:undocumented-parameter
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:undocumented-parameter
plugins/modules/remote_management/redfish/idrac_redfish_command.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/idrac_redfish_config.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/idrac_redfish_info.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_command.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_config.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_info.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:doc-default-does-not-match-spec
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc

View file

@ -289,12 +289,6 @@ plugins/modules/remote_management/oneview/oneview_san_manager.py validate-module
plugins/modules/remote_management/oneview/oneview_san_manager.py validate-modules:undocumented-parameter
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:parameter-type-not-in-doc
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:undocumented-parameter
plugins/modules/remote_management/redfish/idrac_redfish_command.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/idrac_redfish_config.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/idrac_redfish_info.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_command.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_config.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/redfish/redfish_info.py validate-modules:parameter-list-no-elements
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:doc-default-does-not-match-spec
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:no-default-for-required-parameter
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc