File: //usr/lib/python3/dist-packages/sos/collector/transports/__pycache__/__init__.cpython-310.pyc
o
i��d; � @ sZ d dl Z d dlZd dlZd dlZd dlmZ d dlmZmZ d dl m
Z
G dd� d�ZdS )� N)�quote)�ConnectionException�CommandTimeoutException)�boldc @ s� e Zd ZdZdZdZdd� Zdd� Zdd � Zd
d� Z dd
� Z
edd� �Zedd� �Z
edd� �Zedd� �Zedd� �Zdd� Zdd� Zdd� Zdd� Zd d!� Z #d6d$d%�Zd&d'� Zd(d)� Zd*d+� Zd,d-� Zd.d/� Zd0d1� Zd2d3� Zd4d5� ZdS )7�RemoteTransportaO The base class used for defining supported remote transports to connect
to remote nodes in conjunction with `sos collect`.
This abstraction is used to manage the backend connections to nodes so that
SoSNode() objects can be leveraged generically to connect to nodes, inspect
those nodes, and run commands on them.
� undefinedNc C sF || _ |d | _|d | _|d | _d | _t�d�| _t�d�| _d S )N�cmdlineopts�tmpdir� need_sudo�sos�sos_ui) �address�optsr r
� _hostname�logging� getLogger�soslog�ui_log)�selfr
�commons� r �C/usr/lib/python3/dist-packages/sos/collector/transports/__init__.py�__init__"