mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Update zabbix_action.py (#50582)
* Document "host_groups", "templates" and "inventory" operation parameters. * Fix a couple of typos. Fixes #50581 +label: docsite_pr
This commit is contained in:
@@ -211,6 +211,20 @@ options:
|
|||||||
media_type:
|
media_type:
|
||||||
description:
|
description:
|
||||||
- Media type that will be used to send the message.
|
- Media type that will be used to send the message.
|
||||||
|
host_groups:
|
||||||
|
type: list
|
||||||
|
description:
|
||||||
|
- List of host groups host should be added to.
|
||||||
|
- Required when I(type=add_to_host_group) or I(type=remove_from_host_group).
|
||||||
|
templates:
|
||||||
|
type: list
|
||||||
|
description:
|
||||||
|
- List of templates host should be linked to.
|
||||||
|
- Required when I(type=link_to_template) or I(type=unlink_from_template).
|
||||||
|
inventory:
|
||||||
|
description:
|
||||||
|
- Host inventory mode.
|
||||||
|
- Required when I(type=set_host_inventory_mode).
|
||||||
command_type:
|
command_type:
|
||||||
description:
|
description:
|
||||||
- Type of operation command.
|
- Type of operation command.
|
||||||
@@ -884,7 +898,7 @@ class Operations(object):
|
|||||||
operation: operation to construct the message user
|
operation: operation to construct the message user
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
list: constructed operation message user or None if oprtation not found
|
list: constructed operation message user or None if operation not found
|
||||||
"""
|
"""
|
||||||
if operation.get('send_to_users') is None:
|
if operation.get('send_to_users') is None:
|
||||||
return None
|
return None
|
||||||
@@ -1013,7 +1027,7 @@ class Operations(object):
|
|||||||
return {'inventory_mode': operation.get('inventory')}
|
return {'inventory_mode': operation.get('inventory')}
|
||||||
|
|
||||||
def construct_the_data(self, operations):
|
def construct_the_data(self, operations):
|
||||||
"""Construct the oprtation data using helper methods.
|
"""Construct the operation data using helper methods.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
operation: operation to construct
|
operation: operation to construct
|
||||||
|
|||||||
Reference in New Issue
Block a user