File: //usr/lib/python3.6/site-packages/sos/collector/transports/__pycache__/saltstack.cpython-36.pyc
3
3��d� � @ s` d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZ d dl m
Z
mZ G dd� de�ZdS )� N)�RemoteTransport)�ConnectionException�#SaltStackMasterUnsupportedException)�
is_executable�sos_get_command_outputc sr e Zd ZdZdZdd� Zd� fdd � Zd
d� Zedd
� �Z ddd�Z
ddd�Zdd� Zedd� �Z
dd� Z� ZS )�SaltStackMasterz�
A transport for collect that leverages SaltStack's Master Pub/Sub
functionality to send commands to minions.
This transport will by default assume the use cmd.shell module to
execute commands on the minions.
Z saltstackc C s t tj|�j� �d S )Nr )�list�json�loads�values)�selfZjson_output� r
�/usr/lib/python3.6/saltstack.py�_convert_output_json! s z$SaltStackMaster._convert_output_json� FNc
sD t t| �j|||||�}tjt�� | j|d �|d<