diff options
author | Kenny Woodson <kwoodson@redhat.com> | 2015-11-12 11:58:57 -0500 |
---|---|---|
committer | Kenny Woodson <kwoodson@redhat.com> | 2015-11-12 12:17:50 -0500 |
commit | 15c70ef6da8f63ad9c29ee67328795a2232e6371 (patch) | |
tree | 1dc474b21953bee31e0b244d4c505a49a7844f53 | |
parent | d1d0bb94e2d2b12b857c51076b6b429d02f411c5 (diff) | |
download | openshift-15c70ef6da8f63ad9c29ee67328795a2232e6371.tar.gz openshift-15c70ef6da8f63ad9c29ee67328795a2232e6371.tar.bz2 openshift-15c70ef6da8f63ad9c29ee67328795a2232e6371.tar.xz openshift-15c70ef6da8f63ad9c29ee67328795a2232e6371.zip |
Dependencies need to be added when a create occurs on SLA object.
-rw-r--r-- | roles/lib_zabbix/library/zbx_itservice.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/lib_zabbix/library/zbx_itservice.py b/roles/lib_zabbix/library/zbx_itservice.py index 37aea1494..a5ee97e15 100644 --- a/roles/lib_zabbix/library/zbx_itservice.py +++ b/roles/lib_zabbix/library/zbx_itservice.py @@ -183,7 +183,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]['serviceid']]) module.exit_json(changed=True, results=content['result'], state="absent") # Create and Update @@ -210,6 +210,7 @@ def main(): if content.has_key('error'): module.exit_json(failed=True, changed=True, results=content['error'], state="present") + if dependencies: content = add_dependencies(zapi, module.params['name'], dependencies) if content.has_key('error'): |