Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sos/collector/transports/__pycache__/ |
Upload File : |
o -�_g1 � @ 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 s� e Zd ZdZdZdd� Z d� fdd � Zd d� Zdd � Ze dd� �Z ddd�Zddd�Zdd� Z e dd� �Zdd� Zdd� 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 sV t � �|||||�}t�t�� | �|d �|d<