����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- coding: utf-8 -*-
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
from ansible_collections.community.zabbix.plugins.module_utils.wrappers import ZapiWrapper
from ansible_collections.community.zabbix.plugins.module_utils.api_request import ZabbixApiRequest
class ZabbixBase(object):
"""
The base class for deriving off module classes
"""
def __init__(self, module, zbx=None, zapi_wrapper=None):
self._module = module
if module._socket_path is None:
# ansible_connection = local
if zapi_wrapper is None:
self._zapi_wrapper = ZapiWrapper(module, zbx)
else:
self._zapi_wrapper = zapi_wrapper
self._zapi = self._zapi_wrapper._zapi
self._zbx_api_version = self._zapi_wrapper._zbx_api_version
else:
# ansible_connection = httpapi
self._zapi = ZabbixApiRequest(module)
self._zbx_api_version = self._zapi.api_version()
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| _version.py | File | 12.45 KB | 0644 |
|
| api_request.py | File | 2.66 KB | 0644 |
|
| base.py | File | 1.1 KB | 0644 |
|
| helpers.py | File | 5.98 KB | 0644 |
|
| wrappers.py | File | 2.51 KB | 0644 |
|