File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/splunk_search.cpython-310.pyc
Back
o ;j# � @ s� d Z ddlZddlZddlmZ ddlZdZzddl Z ddl ZdZW n ey+ Y nw e� e�ZddiZdZd d � Zdd� Zd d� Zddd�Zddd�Zddd�Zddd�Zddd�Z ddd�ZdS )a� Module for interop with the Splunk API .. versionadded:: 2015.5.0 :depends: - splunk-sdk python module :configuration: Configure this module by specifying the name of a configuration profile in the minion config, minion pillar, or master config. The module will use the 'splunk' key by default, if defined. For example: .. code-block:: yaml splunk: username: alice password: abc123 host: example.splunkcloud.com port: 8080 � N)�OrderedDictFT�list_�listZ splunk_searchc C s t rtS dS )zF Only load this module if splunk is installed on this minion. )Fz�The splunk_search execution module failed to load: requires both the requests and the splunk-sdk python library to be installed.)�HAS_LIBS�__virtualname__� r r �N/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/splunk_search.py�__virtual__. s r c C st t d | �}d�|�d�|�d�|�d�|�d��}|tvr6tjj|�d�|�d�|�d�|�d�d�t|<