![]() 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/report/plugins/__pycache__/ |
o i��d� � @ s* d dl mZmZmZ G dd� dee�ZdS )� )�Plugin�UbuntuPlugin� PluginOptc @ sv e Zd ZdZdZdZdZdZedde dd �ed de dd �edde d d �gZ dd� Zdd� Zdd� Z dd� Zdd� ZdS )�MaaszUbuntu Metal-As-A-Service�maas)�sysmgmt)r zmaas-common)z maas-dhcpdzmaas-dhcpd6z maas-httpz maas-proxyz maas-rackdzmaas-regiondzmaas-syslogzsnap.maas.supervisor�profile-name� zName of the remote API)�default�val_type�desc�urlzURL of the remote API�credentialszCredentials, or the API keyc C s | � d�o| � d�o| � d�S )Nr r r )� get_option��self� r �9/usr/lib/python3/dist-packages/sos/report/plugins/maas.py�_has_login_options, s �zMaas._has_login_optionsc C s2 | � d| �d�| �d�| �d�f �}|d dkS )Nzmaas login %s %s %sr r r �statusr )�exec_cmdr )r �retr r r �_remote_api_login0 s ��zMaas._remote_api_loginc C s"