![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/collector/transports/__pycache__/ |
o i��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 st e Zd ZdZdZdd� Z d� 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. � saltstackc C s t t�|��� �d S )Nr )�list�json�loads�values)�self�json_output� r �D/usr/lib/python3/dist-packages/sos/collector/transports/saltstack.py�_convert_output_json! s z$SaltStackMaster._convert_output_json� FNc sZ t t| ��|||||�}t�t�� | �|d �|d<