zabbix_hostmacro: Fixed basic auth (#2330) (#2331)

This commit is contained in:
Artem Alexandrov 2016-06-07 00:53:12 +04:00 committed by René Moser
parent 575fc6e87b
commit 5d900b7a77

View file

@ -111,8 +111,8 @@ except ImportError:
# Extend the ZabbixAPI # Extend the ZabbixAPI
# Since the zabbix-api python module too old (version 1.0, no higher version so far). # Since the zabbix-api python module too old (version 1.0, no higher version so far).
class ZabbixAPIExtends(ZabbixAPI): class ZabbixAPIExtends(ZabbixAPI):
def __init__(self, server, timeout, **kwargs): def __init__(self, server, timeout, user, passwd, **kwargs):
ZabbixAPI.__init__(self, server, timeout=timeout) ZabbixAPI.__init__(self, server, timeout=timeout, user=user, passwd=passwd)
class HostMacro(object): class HostMacro(object):