mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
rax_mon_notification_plan - fixed validation check (#2955)
* fixed validation-modules for plugins/modules/cloud/rackspace/rax_mon_notification_plan.py * fixed sanity check * added changelog fragment
This commit is contained in:
parent
1990f79d8a
commit
0e90ff48b5
5 changed files with 8 additions and 6 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- rax_mon_notification_plan - fixed validation checks by specifying type ``str`` as the ``elements`` of parameters ``ok_state``, ``warning_state`` and ``critical_state`` (https://github.com/ansible-collections/community.general/pull/2955).
|
|
@ -32,16 +32,19 @@ options:
|
||||||
required: true
|
required: true
|
||||||
critical_state:
|
critical_state:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- Notification list to use when the alarm state is CRITICAL. Must be an
|
- Notification list to use when the alarm state is CRITICAL. Must be an
|
||||||
array of valid rax_mon_notification ids.
|
array of valid rax_mon_notification ids.
|
||||||
warning_state:
|
warning_state:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- Notification list to use when the alarm state is WARNING. Must be an array
|
- Notification list to use when the alarm state is WARNING. Must be an array
|
||||||
of valid rax_mon_notification ids.
|
of valid rax_mon_notification ids.
|
||||||
ok_state:
|
ok_state:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- Notification list to use when the alarm state is OK. Must be an array of
|
- Notification list to use when the alarm state is OK. Must be an array of
|
||||||
valid rax_mon_notification ids.
|
valid rax_mon_notification ids.
|
||||||
|
@ -150,9 +153,9 @@ def main():
|
||||||
dict(
|
dict(
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
label=dict(required=True),
|
label=dict(required=True),
|
||||||
critical_state=dict(type='list'),
|
critical_state=dict(type='list', elements='str'),
|
||||||
warning_state=dict(type='list'),
|
warning_state=dict(type='list', elements='str'),
|
||||||
ok_state=dict(type='list')
|
ok_state=dict(type='list', elements='str'),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-cho
|
||||||
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
|
@ -4,7 +4,6 @@ plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-cho
|
||||||
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
|
@ -4,7 +4,6 @@ plugins/modules/cloud/misc/rhevm.py validate-modules:parameter-state-invalid-cho
|
||||||
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
Loading…
Reference in a new issue