From 0dcd27433933a6baa69a2897db9558d6f7d1ad68 Mon Sep 17 00:00:00 2001 From: Artem Alexandrov Date: Tue, 7 Jun 2016 00:53:12 +0400 Subject: [PATCH] zabbix_hostmacro: Fixed basic auth (#2330) (#2331) --- lib/ansible/modules/extras/monitoring/zabbix_hostmacro.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/extras/monitoring/zabbix_hostmacro.py b/lib/ansible/modules/extras/monitoring/zabbix_hostmacro.py index 79de0c3afc0..c431ab0f17e 100644 --- a/lib/ansible/modules/extras/monitoring/zabbix_hostmacro.py +++ b/lib/ansible/modules/extras/monitoring/zabbix_hostmacro.py @@ -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):