diff --git a/plugins/httpapi/zabbix.py b/plugins/httpapi/zabbix.py index d5c95c235..97b1252b1 100644 --- a/plugins/httpapi/zabbix.py +++ b/plugins/httpapi/zabbix.py @@ -50,7 +50,6 @@ - name: http_login_password """ -import inspect import json import base64 @@ -127,7 +126,7 @@ def send_request(self, data, request_method="POST", path="/api_jsonrpc.php"): headers['Authorization'] = 'Bearer ' + self.auth else: data['auth'] = self.auth - + http_login_user = self.get_option('http_login_user') http_login_password = self.get_option('http_login_password') if http_login_user and http_login_user != '-42': diff --git a/plugins/modules/zabbix_host_events_info.py b/plugins/modules/zabbix_host_events_info.py index ca6839574..fdd2b9e70 100644 --- a/plugins/modules/zabbix_host_events_info.py +++ b/plugins/modules/zabbix_host_events_info.py @@ -274,6 +274,7 @@ import ansible_collections.community.zabbix.plugins.module_utils.helpers as zabbix_utils from ansible.module_utils.compat.version import LooseVersion + class Host(ZabbixBase): def get_host(self, host_identifier, host_inventory, search_key): """ Get host by hostname|visible_name|hostid """