summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Diaz <jdiaz@redhat.com>2015-12-08 12:03:25 -0500
committerJoel Diaz <jdiaz@redhat.com>2015-12-08 12:03:25 -0500
commit92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e (patch)
treee5f283fb676ee5bf01b053e0ce29c738236f7336
parent15aa17c6162c036f6b164f225d2a071c138af965 (diff)
downloadopenshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.gz
openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.bz2
openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.xz
openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.zip
Fix delete state
-rw-r--r--roles/lib_zabbix/library/zbx_action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/lib_zabbix/library/zbx_action.py b/roles/lib_zabbix/library/zbx_action.py
index 24693e5db..8bb586c0b 100644
--- a/roles/lib_zabbix/library/zbx_action.py
+++ b/roles/lib_zabbix/library/zbx_action.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python
+# vim: expandtab:tabstop=4:shiftwidth=4
'''
Ansible module for zabbix actions
'''
-# vim: expandtab:tabstop=4:shiftwidth=4
#
# Zabbix action ansible module
#
@@ -457,7 +457,7 @@ def main():
if not exists(content):
module.exit_json(changed=False, state="absent")
- content = zapi.get_content(zbx_class_name, 'delete', [content['result'][0]['itemid']])
+ content = zapi.get_content(zbx_class_name, 'delete', [content['result'][0]['actionid']])
module.exit_json(changed=True, results=content['result'], state="absent")
# Create and Update