Current File : //lib/python2.7/site-packages/sos/plugins/maas.pyo
�
u��ec@s3ddlmZmZdeefd��YZdS(i����(tPlugintUbuntuPlugintMaascBsYeZdZdZdZdZdZdddgZd�Zd�Z	d�Z
d�ZRS(sUbuntu Metal-As-A-Service
    tmaastsysmgmtsmaas-commons
maas-dhcpdsmaas-dhcpd6s	maas-https
maas-proxys
maas-rackdsmaas-regiondsmaas-syslogsprofile-names7The name with which you will later refer to this remotetturlsThe URL of the remote APItcredentialss*The credentials, also known as the API keycCs+|jd�o*|jd�o*|jd�S(NRRsprofile-name(t
get_option(tself((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyt_has_login_options(scCsE|jd|jd�|jd�|jd�f�}|ddkS(Nsmaas login %s %s %ssprofile-nameRRtstatusi(texec_cmdR(R	tret((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyt_remote_api_login,scCs�|jddddddg�|jddg�x!|jD]}|jd	|�q<W|jd
�rx|jdg�n|j�r�|j�r�|jd|jd
��q�|jd�ndS(Ns/etc/squid-deb-proxys	/etc/maass/var/lib/maas/dhcp*s/var/log/apache2*s/var/log/maas*s/var/log/upstart/maas-*sapt-cache policy maas-*s apt-cache policy python-django-*tunitssmaas-region-controllersmaas-region-admin dumpdatas"maas %s commissioning-results listsprofile-names6Cannot login into MAAS remote API with provided creds.(	t
add_copy_spectadd_cmd_outputtservicestadd_journaltis_installedR
RRt
_log_error(R	tservice((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pytsetup7s*


	cCs|jddd�dS(Ns/etc/maas/regiond.confs(database_pass\s*:\s*)(.*)s
\1********(tdo_file_sub(R	((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pytpostprocUs	(R(Rsmaas-common(s
maas-dhcpdsmaas-dhcpd6s	maas-https
maas-proxys
maas-rackdsmaas-regiondsmaas-syslog(sprofile-names7The name with which you will later refer to this remoteRR(surlsThe URL of the remote APIRR(scredentialss*The credentials, also known as the API keyRR(t__name__t
__module__t__doc__tplugin_nametprofilestpackagesRtoption_listR
RRR(((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyRs(				N(tsos.pluginsRRR(((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyt<module>s