summaryrefslogtreecommitdiffstats
path: root/roles/os_zabbix/library
diff options
context:
space:
mode:
authorKenny Woodson <kwoodson@redhat.com>2015-08-12 12:47:32 -0400
committerKenny Woodson <kwoodson@redhat.com>2015-08-12 14:50:51 -0400
commit75170e2f6558dc9df9bfdb93dbf2bf9b13c1bce5 (patch)
treef6ae69114c3099ef3dde4b3da9a759e052a02b6d /roles/os_zabbix/library
parentf6f21d3a639323045fb98b59babeaca8ceb54c65 (diff)
downloadopenshift-75170e2f6558dc9df9bfdb93dbf2bf9b13c1bce5.tar.gz
openshift-75170e2f6558dc9df9bfdb93dbf2bf9b13c1bce5.tar.bz2
openshift-75170e2f6558dc9df9bfdb93dbf2bf9b13c1bce5.tar.xz
openshift-75170e2f6558dc9df9bfdb93dbf2bf9b13c1bce5.zip
zbx item now uses key as default name. Clean up.
Diffstat (limited to 'roles/os_zabbix/library')
-rw-r--r--roles/os_zabbix/library/zbx_item.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/os_zabbix/library/zbx_item.py b/roles/os_zabbix/library/zbx_item.py
index 6cfb16d48..57ec06463 100644
--- a/roles/os_zabbix/library/zbx_item.py
+++ b/roles/os_zabbix/library/zbx_item.py
@@ -119,7 +119,7 @@ def main():
module.exit_json(changed=True, results=content['result'], state="absent")
if state == 'present':
- params = {'name': module.params['name'],
+ params = {'name': module.params.get('name', module.params['key']),
'key_': key,
'hostid': templateid,
'type': module.params['zabbix_type'],