MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyo
�
d�bc@s�dZddlZddlZddlZddljjZddljj	Z	ddl
mZddlm
Z
ddljjjZddlmZmZmZmZdZdZdZd	�Zd
efd��YZdS(sB
Copy and parse ovf-env.xml from provisioning ISO and local cache
i����N(t
ProtocolError(tustr(t	parse_doctfindalltfindtfindtexts1.0s)http://schemas.dmtf.org/ovf/environment/1s)http://schemas.microsoft.com/windowsazurecCs(|dkr$tdj|���ndS(NsFailed to validate OVF: {0}(tNoneRtformat(tvaltmsg((sJ/usr/lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyt
_validate_ovf$stOvfEnvcBs eZdZd�Zd�ZRS(sO
    Read, and process provisioning info from provisioning file OvfEnv.xml
    cCs�|dkrtd��ntjd�d|_d|_d|_d|_t|_	g|_
g|_d|_|j
|�dS(Nsovf-env is NonesLoad ovf-env.xml(Rt
ValueErrortloggertverbosethostnametusernamet
user_passwordt
customdatatTruetdisable_ssh_password_authtssh_pubkeystssh_keypairstprovision_guest_agenttparse(tselftxml_text((sJ/usr/lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyt__init__-s
								cCs�t}t}t|�}t|dd|�}t|d�t|dd|�}t|d�t|dd|�}t|d�|tkr�tjd�nt|d	d|�}t|d
�t|dd|�|_	t|j	d�t|d
d|�|_
t|j
d�t|dd|�|_t|dd|�|_t|dd|�}	|	dk	r{|	j�dkr{t|_n	t|_t|dd|�}
xf|
D]^}t|dd|�}t|dd|�}
t|dd|�}|jj||
|f�q�Wt|dd|�}xN|D]F}t|dd|�}t|dd|�}
|jj||
f�qWt|dd|�}t|d�t|dd|�}t|d�t|dd|�|_t|jd�dS(s_
        Parse xml tree, retreiving user and ssh key information.
        Return self.
        tEnvironmentt	namespacesEnvironment not foundtProvisioningSectionsProvisioningSection not foundtVersionsVersion not foundsKNewer provisioning configuration detected. Please consider updating waagentt!LinuxProvisioningConfigurationSets+LinuxProvisioningConfigurationSet not foundtHostNamesHostName not foundtUserNamesUserName not foundtUserPasswordt
CustomDatat DisableSshPasswordAuthenticationttruet	PublicKeytPathtFingerprinttValuetKeyPairtPlatformSettingsSections!PlatformSettingsSection not foundtPlatformSettingssPlatformSettings not foundtProvisionGuestAgentsProvisionGuestAgent not foundN(t
WA_NAME_SPACEtOVF_NAME_SPACERRR
RtOVF_VERSIONR
twarnRRRRRtlowerRRtFalseRRtappendRR(RRtwanstovfnstxml_doctenvironmenttsectiontversiontconf_settauth_optiontpublic_keyst
public_keytpathtfingerprinttvaluetkeypairstkeypairtplatform_settings_sectiontplatform_settings((sJ/usr/lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyR;sT


	
		



(t__name__t
__module__t__doc__RR(((sJ/usr/lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyR)s	(RItostretshutiltxml.dom.minidomtdomtminidomtazurelinuxagent.common.loggertcommonR
t azurelinuxagent.common.exceptionRtazurelinuxagent.common.futureRt%azurelinuxagent.common.utils.fileutiltutilstfileutilt%azurelinuxagent.common.utils.textutilRRRRR1R0R/R
tobjectR(((sJ/usr/lib/python2.7/site-packages/azurelinuxagent/common/protocol/ovfenv.pyt<module>s"