Server IP : 209.38.156.173 / Your IP : 216.73.216.122 [ Web Server : Apache/2.4.52 (Ubuntu) System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.1.2-1ubuntu2.22 Disable Function : NONE Domains : 2 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3/dist-packages/sos/report/plugins/__pycache__/ |
Upload File : |
o ���b � @ s* d dl mZmZmZ G dd� dee�ZdS )� )�Plugin�UbuntuPlugin� PluginOptc s� e Zd ZdZdZdZdZdZedde dd �ed de dd �edde d d �gZ dd� Zdd� Zdd� Z � fdd�Zdd� Zdd� Z� ZS )�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 | � d�d dkS )Nzsnap list maasr r )r r r r r �_is_snap_installed; s zMaas._is_snap_installedc s t � �� rdS | �� S )NT)�super� check_enabledr r �� __class__r r r >