%PDF- %PDF-
Direktori : /lib/python3/dist-packages/sos/collector/transports/__pycache__/ |
Current File : //lib/python3/dist-packages/sos/collector/transports/__pycache__/juju.cpython-312.pyc |
� i��d� � �F � d dl Z d dlmZ d dlmZ d dlmZ G d� de� Zy)� N)�JujuNotInstalledException)�RemoteTransport)�sos_get_command_outputc �X � e Zd ZdZdZdZd� Zd� Zdd�Zd� Z e d� � Ze d � � Zd � Z y) �JujuSSHa A "transport" that leverages `juju ssh` to perform commands on the remote hosts. This transport is expected to be used in juju managed environment, and the user should have the necessary credential for accessing the controller. When using this transport, the --nodes option will be expected to be a comma separated machine IDs, **not** IP addr, since `juju ssh` identifies the ssh target by machine ID. Examples: sos collect --nodes 0,1,2 --no-local --transport juju --batch �juju_ssh�ubuntuc � � d} t j |t j d�� y# t j $ r | j d� t �w xY w)Nzjuju versionT��stderr�shellzFailed to check `juju` version)� subprocess�check_output�STDOUT�CalledProcessError� log_errorr )�self�cmds �?/usr/lib/python3/dist-packages/sos/collector/transports/juju.py�_check_juju_installedzJujuSSH._check_juju_installed'