Viewing File: /usr/lib/python2.7/site-packages/sos/plugins/maas.pyc

ó
ÑKjc@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
Back to Directory File Manager