1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02: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:
Richlv 2019-01-08 17:11:48 +02:00 committed by Sandra McCann
parent 9a520b26e3
commit c7f3829ad4

View file

@ -211,6 +211,20 @@ options:
media_type:
description:
- 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:
description:
- Type of operation command.
@ -884,7 +898,7 @@ class Operations(object):
operation: operation to construct the message user
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:
return None
@ -1013,7 +1027,7 @@ class Operations(object):
return {'inventory_mode': operation.get('inventory')}
def construct_the_data(self, operations):
"""Construct the oprtation data using helper methods.
"""Construct the operation data using helper methods.
Args:
operation: operation to construct