Module zabbix_action maintenance_status requires unavailable operator #58747
Labels
affects_2.8
This issue/PR affects Ansible v2.8
bug
This issue/PR relates to a bug.
collection
Related to Ansible Collections work
module
This issue/PR relates to a module.
monitoring
Monitoring category
needs_collection_redirect
https://github.com/ansible/ansibullbot/blob/master/docs/collection_migration.md
python3
support:community
This issue/PR relates to code supported by the Ansible community.
zabbix
Zabbix community
SUMMARY
ISSUE TYPE
COMPONENT NAME
zabbix_action
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Linux zabbix 4.4.0-154-generic #181-Ubuntu SMP Tue Jun 25 05:29:03 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
STEPS TO REPRODUCE
zabbix 4.0, zabbix api Action object
https://www.zabbix.com/documentation/4.0/manual/api/reference/action/object
When Action operation-conditiontype is 16 - problem is suppressed, it requires new operator "10 - Yes; or 11 - No. "
lib/python3.5/dist-packages/ansible/modules/monitoring/zabbix/zabbix_action.py
line 1391~
try:
return to_numeric_value([
"=",
"<>",
"like",
"not like",
"in",
">=",
"<=",
"not in",
"dammy 8",
"dammy 9",
"Yes",
"No"], _condition['operator']
)
then I can add zabbix action with maintenance_status
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: