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
* 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>
(cherry picked from commit ba4a98b1be
)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
a332ed4429
commit
a3c9c688b9
9 changed files with 16 additions and 19 deletions
2
changelogs/fragments/1761-redfish-tidy-up-validation.yml
Normal file
2
changelogs/fragments/1761-redfish-tidy-up-validation.yml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- redfish modules - explicitly setting lists' elements to ``str`` (https://github.com/ansible-collections/community.general/pull/1761).
|
|
@ -26,6 +26,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- List of commands to execute on OOB controller
|
- List of commands to execute on OOB controller
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -134,7 +135,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(required=True),
|
category=dict(required=True),
|
||||||
command=dict(required=True, type='list'),
|
command=dict(required=True, type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -29,6 +29,7 @@ options:
|
||||||
I(SetSystemAttributes) are mutually exclusive commands when C(category)
|
I(SetSystemAttributes) are mutually exclusive commands when C(category)
|
||||||
is I(Manager)
|
is I(Manager)
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -245,7 +246,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(required=True),
|
category=dict(required=True),
|
||||||
command=dict(required=True, type='list'),
|
command=dict(required=True, type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -30,6 +30,7 @@ options:
|
||||||
- C(GetManagerAttributes) returns the list of dicts containing iDRAC,
|
- C(GetManagerAttributes) returns the list of dicts containing iDRAC,
|
||||||
LifecycleController and System attributes
|
LifecycleController and System attributes
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -171,7 +172,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(required=True),
|
category=dict(required=True),
|
||||||
command=dict(required=True, type='list'),
|
command=dict(required=True, type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -28,6 +28,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- List of commands to execute on OOB controller
|
- List of commands to execute on OOB controller
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -550,7 +551,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(required=True),
|
category=dict(required=True),
|
||||||
command=dict(required=True, type='list'),
|
command=dict(required=True, type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -27,6 +27,7 @@ options:
|
||||||
description:
|
description:
|
||||||
- List of commands to execute on OOB controller
|
- List of commands to execute on OOB controller
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -228,7 +229,7 @@ def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(required=True),
|
category=dict(required=True),
|
||||||
command=dict(required=True, type='list'),
|
command=dict(required=True, type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -24,11 +24,13 @@ options:
|
||||||
- List of categories to execute on OOB controller
|
- List of categories to execute on OOB controller
|
||||||
default: ['Systems']
|
default: ['Systems']
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
command:
|
command:
|
||||||
required: false
|
required: false
|
||||||
description:
|
description:
|
||||||
- List of commands to execute on OOB controller
|
- List of commands to execute on OOB controller
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
baseuri:
|
baseuri:
|
||||||
required: true
|
required: true
|
||||||
description:
|
description:
|
||||||
|
@ -296,8 +298,8 @@ def main():
|
||||||
category_list = []
|
category_list = []
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec=dict(
|
argument_spec=dict(
|
||||||
category=dict(type='list', default=['Systems']),
|
category=dict(type='list', elements='str', default=['Systems']),
|
||||||
command=dict(type='list'),
|
command=dict(type='list', elements='str'),
|
||||||
baseuri=dict(required=True),
|
baseuri=dict(required=True),
|
||||||
username=dict(required=True),
|
username=dict(required=True),
|
||||||
password=dict(required=True, no_log=True),
|
password=dict(required=True, no_log=True),
|
||||||
|
|
|
@ -293,12 +293,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.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:parameter-type-not-in-doc
|
||||||
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:undocumented-parameter
|
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: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:no-default-for-required-parameter
|
||||||
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
|
@ -292,12 +292,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.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:parameter-type-not-in-doc
|
||||||
plugins/modules/remote_management/oneview/oneview_san_manager_info.py validate-modules:undocumented-parameter
|
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: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:no-default-for-required-parameter
|
||||||
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/remote_management/stacki/stacki_host.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
Loading…
Reference in a new issue