ó uÈÔec@s3ddlmZmZdeefd„ƒYZdS(iÿÿÿÿ(tPlugint UbuntuPlugintMaascBsYeZdZdZdZdZdZdddgZd„Zd„Z d„Z d„Z RS(sUbuntu Metal-As-A-Service tmaastsysmgmts maas-commons maas-dhcpds maas-dhcpd6s maas-https maas-proxys maas-rackds maas-regionds maas-syslogs profile-names7The name with which you will later refer to this remotetturlsThe URL of the remote APIt credentialss*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|jd gƒ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_outputtservicest add_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********(t do_file_sub(R ((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pytpostprocUs (R(Rs maas-common(s maas-dhcpds maas-dhcpd6s maas-https maas-proxys maas-rackds maas-regionds maas-syslog(s profile-names7The name with which you will later refer to this remoteRR(surlsThe URL of the remote APIRR(s credentialss*The credentials, also known as the API keyRR( t__name__t __module__t__doc__t plugin_nametprofilestpackagesRt option_listR RRR(((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyRs(   N(t sos.pluginsRRR(((s4/usr/lib/python2.7/site-packages/sos/plugins/maas.pyt s