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
3a2e614071
commit
be8022c743
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:
|
||||
- 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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -440,12 +440,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
|
||||
|
|
|
@ -428,12 +428,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
|
||||
|
|
Loading…
Reference in a new issue