Replace deprecated exists API for Zabbix 3.0 compatibility

This commit is contained in:
Eike Frost 2016-02-29 22:58:23 +00:00 committed by Matt Clay
commit b8b2613c35
2 changed files with 1 additions and 6 deletions

View file

@ -106,11 +106,6 @@ class HostMacro(object):
self._module = module
self._zapi = zbx
# exist host
def is_host_exist(self, host_name):
result = self._zapi.host.exists({'host': host_name})
return result
# get host id by host name
def get_host_id(self, host_name):
try: