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

This commit is contained in:
Artem Alexandrov 2016-06-07 00:53:12 +04:00 committed by Matt Clay
parent cea88bdf63
commit 0dcd274339

View file

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