EVOLUTION-MANAGER
Edit File: maas.cpython-36.pyc
3 �f$ � @ s* d dl mZmZmZ G dd� dee�ZdS )� )�Plugin�UbuntuPlugin� PluginOptc @ sz e Zd ZdZdZd$Zd%Zd&Zedde dd�edde dd�edde dd�gZ dZdd� Zdd� Z dd� Zdd � Zd!d"� Zd#S )'�MaaszUbuntu Metal-As-A-Service�maas�sysmgmt�maas-common� maas-dhcpd�maas-dhcpd6� maas-http� maas-proxy� maas-rackd�maas-regiond�maas-syslog� maas-temporal�maas-apiserver� maas-agent�snap.maas.supervisorzprofile-name� zName of the remote API)�defaultZval_typeZdesc�urlzURL of the remote API�credentialszCredentials, or the API keyFc C s | j d�o| j d�o| j d�S )Nr r zprofile-name)� get_option)�self� r �/usr/lib/python3.6/maas.py�_has_login_options4 s zMaas._has_login_optionsc C s2 | j d| jd�| jd�| jd�f �}|d dkS )Nzmaas login %s %s %szprofile-namer r Zstatusr )Zexec_cmdr )r �retr r r �_remote_api_login8 s zMaas._remote_api_loginc C s"