diff options
author | Ricardo Leonardo <raleonardo@gmail.com> | 2019-12-15 04:13:49 +0100 |
---|---|---|
committer | ansibot <ansibot@users.noreply.github.com> | 2019-12-14 22:13:49 -0500 |
commit | d7414d55e14a5c98e381a94f5c8a912afbe6355f (patch) | |
tree | 1c4272549d565c020ef52a9dd4533f2baaa109d3 /lib/ansible/modules/monitoring | |
parent | ff5253fa0efacf5192b6d0f8b41b27a3033d7897 (diff) | |
download | ansible-d7414d55e14a5c98e381a94f5c8a912afbe6355f.tar.gz |
fixes bug: visible_name was not updated when not set in existing host… (#64095)
* fixes bug: visible_name was not updated when not set in existing host in zabbix
* Update changelogs/fragments/fix_zabbix_host_visible_name.yml
Co-Authored-By: Dusan Matejka <D3DeFi@users.noreply.github.com>
* Update lib/ansible/modules/monitoring/zabbix/zabbix_host.py
Co-Authored-By: Dusan Matejka <D3DeFi@users.noreply.github.com>
Diffstat (limited to 'lib/ansible/modules/monitoring')
-rw-r--r-- | lib/ansible/modules/monitoring/zabbix/zabbix_host.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/monitoring/zabbix/zabbix_host.py b/lib/ansible/modules/monitoring/zabbix/zabbix_host.py index 4bf667af1b..572dd15d5c 100644 --- a/lib/ansible/modules/monitoring/zabbix/zabbix_host.py +++ b/lib/ansible/modules/monitoring/zabbix/zabbix_host.py @@ -533,7 +533,7 @@ class Host(object): # Check whether the visible_name has changed; Zabbix defaults to the technical hostname if not set. if visible_name: - if host['name'] != visible_name and host['name'] != host_name: + if host['name'] != visible_name: return True # Only compare description if it is given as a module parameter |