diff options
author | Joel Diaz <jdiaz@redhat.com> | 2015-12-08 12:03:25 -0500 |
---|---|---|
committer | Joel Diaz <jdiaz@redhat.com> | 2015-12-08 12:03:25 -0500 |
commit | 92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e (patch) | |
tree | e5f283fb676ee5bf01b053e0ce29c738236f7336 /roles | |
parent | 15aa17c6162c036f6b164f225d2a071c138af965 (diff) | |
download | openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.gz openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.bz2 openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.tar.xz openshift-92c1e7f9a6c3d0ec0dccd170f80b2411447e0b2e.zip |
Fix delete state
Diffstat (limited to 'roles')
-rw-r--r-- | roles/lib_zabbix/library/zbx_action.py | 4 |
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 |