404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@3.149.214.90: ~ $
3

\�me��@stddlZddljjjZddlmZmZeje	�Z
ddiZdZdZ
dZdZGdd	�d	ej�ZeejffgZd
d�ZdS)�N)�sources�util�metadata_urlz'http://169.254.169.254/metadata/v1.json��Tcs\eZdZdZdd�Zedd��fdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
edd��Z�Z
S)�DataSourceDigitalOcean�DigitalOceancCs�tjj||||�||_t�|_tjtj|ddgi�t	g�|_
|j�|j
d|_|j
j
dt�|_|j
j
dt�|_|j
j
dt�|_|j
j
dt�|_d|_dS)NZ
datasourcerr�retries�timeout�	use_ip4LL�
wait_retry)r�
DataSource�__init__�distro�dict�metadatarZ
mergemanydictZget_cfg_by_path�BUILTIN_DS_CONFIGZds_cfg�
_deprecate�metadata_address�get�
MD_RETRIESr	�
MD_TIMEOUTr
�
MD_USE_IPV4LLr�
MD_WAIT_RETRYr�_network_config)�self�sys_cfgr�paths�r�,/usr/lib/python3.6/DataSourceDigitalOcean.pyr s
zDataSourceDigitalOcean.__init__N)�ci_pkl_version�returncst�j|�|j�dS)N)�super�	_unpickler)rr )�	__class__rrr#4sz DataSourceDigitalOcean._unpicklecCstjdddd�dS)Nrz23.2z.Deprecated in favour of DataSourceConfigDrive.)Z
deprecatedZdeprecated_versionZ
extra_message)rZ	deprecate)rrrrr8sz!DataSourceDigitalOcean._deprecatecCstj�S)N)�	do_helperZread_sysinfo)rrrr�_get_sysinfo?sz#DataSourceDigitalOcean._get_sysinfocCs�|j�\}}|sdStjd|�d}|jr6tj|j�}tj|j|j	|j
|jd�}||_|j
d|�|jd<|j
d|�|jd<|j
d�|jd<|j
d	�|jd
<|j
dd�|jd
<|j
dd�|_|j
dd�|_|r�tj|�dS)NFz&Running on DigitalOcean. droplet_id=%s)r
Zsec_betweenr	�
droplet_idzinstance-idZhostnamezlocal-hostname�
interfacesZpublic_keyszpublic-keysZregion�defaultZavailability_zoneZvendor_dataZ	user_dataT)r&�LOG�inforr%Zassign_ipv4_link_localrZ
read_metadatarr
rr	�
metadata_fullrrZvendordata_rawZuserdata_rawZdel_ipv4_link_local)rZis_dor'Z
ipv4LL_nicZmdrrr�	_get_dataBs.

z DataSourceDigitalOcean._get_datacCstj|j�d�S)Nzsystem-serial-number)rZinstance_id_matches_system_uuidZget_instance_id)rrrrr�check_instance_iddsz(DataSourceDigitalOcean.check_instance_idcCsP|jr|jS|jjd�}tj|�|s.td��|jdd}tj||�|_|jS)z�Configure the networking. This needs to be done each boot, since
        the IP information may have changed due to snapshot and/or
        migration.
        r(z'Unable to get meta-data from server....Zdns�nameservers)	rrrr*�debug�RuntimeErrorr,r%Zconvert_network_configuration)rr(r/rrr�network_configis

z%DataSourceDigitalOcean.network_config)�__name__�
__module__�__qualname__Zdsnamer�intr#rr&r-r.�propertyr2�
__classcell__rr)r$rrs"rcCstj|t�S)N)rZlist_from_depends�datasources)Zdependsrrr�get_datasource_list�sr:)ZloggingZ&cloudinit.sources.helpers.digitaloceanrZhelpersZdigitaloceanr%Z	cloudinitrZ	getLoggerr3r*rrrrrr
rZDEP_FILESYSTEMr9r:rrrr�<module>	s
e

Filemanager

Name Type Size Permission Actions
DataSourceAkamai.cpython-36.opt-1.pyc File 8.18 KB 0644
DataSourceAkamai.cpython-36.pyc File 8.18 KB 0644
DataSourceAliYun.cpython-36.opt-1.pyc File 3.22 KB 0644
DataSourceAliYun.cpython-36.pyc File 3.22 KB 0644
DataSourceAltCloud.cpython-36.opt-1.pyc File 6.74 KB 0644
DataSourceAltCloud.cpython-36.pyc File 6.74 KB 0644
DataSourceAzure.cpython-36.opt-1.pyc File 47.95 KB 0644
DataSourceAzure.cpython-36.pyc File 47.95 KB 0644
DataSourceBigstep.cpython-36.opt-1.pyc File 1.84 KB 0644
DataSourceBigstep.cpython-36.pyc File 1.84 KB 0644
DataSourceCloudSigma.cpython-36.opt-1.pyc File 3.62 KB 0644
DataSourceCloudSigma.cpython-36.pyc File 3.62 KB 0644
DataSourceCloudStack.cpython-36.opt-1.pyc File 5.97 KB 0644
DataSourceCloudStack.cpython-36.pyc File 5.97 KB 0644
DataSourceConfigDrive.cpython-36.opt-1.pyc File 8.18 KB 0644
DataSourceConfigDrive.cpython-36.pyc File 8.18 KB 0644
DataSourceDigitalOcean.cpython-36.opt-1.pyc File 3.65 KB 0644
DataSourceDigitalOcean.cpython-36.pyc File 3.65 KB 0644
DataSourceEc2.cpython-36.opt-1.pyc File 23.49 KB 0644
DataSourceEc2.cpython-36.pyc File 23.49 KB 0644
DataSourceExoscale.cpython-36.opt-1.pyc File 5.92 KB 0644
DataSourceExoscale.cpython-36.pyc File 5.92 KB 0644
DataSourceGCE.cpython-36.opt-1.pyc File 9.83 KB 0644
DataSourceGCE.cpython-36.pyc File 9.93 KB 0644
DataSourceHetzner.cpython-36.opt-1.pyc File 3.78 KB 0644
DataSourceHetzner.cpython-36.pyc File 3.78 KB 0644
DataSourceIBMCloud.cpython-36.opt-1.pyc File 12.44 KB 0644
DataSourceIBMCloud.cpython-36.pyc File 12.44 KB 0644
DataSourceLXD.cpython-36.opt-1.pyc File 13.31 KB 0644
DataSourceLXD.cpython-36.pyc File 13.31 KB 0644
DataSourceMAAS.cpython-36.opt-1.pyc File 11.86 KB 0644
DataSourceMAAS.cpython-36.pyc File 11.86 KB 0644
DataSourceNWCS.cpython-36.opt-1.pyc File 3.77 KB 0644
DataSourceNWCS.cpython-36.pyc File 3.77 KB 0644
DataSourceNoCloud.cpython-36.opt-1.pyc File 7.97 KB 0644
DataSourceNoCloud.cpython-36.pyc File 7.97 KB 0644
DataSourceNone.cpython-36.opt-1.pyc File 1.47 KB 0644
DataSourceNone.cpython-36.pyc File 1.47 KB 0644
DataSourceOVF.cpython-36.opt-1.pyc File 9.15 KB 0644
DataSourceOVF.cpython-36.pyc File 9.15 KB 0644
DataSourceOpenNebula.cpython-36.opt-1.pyc File 11.75 KB 0644
DataSourceOpenNebula.cpython-36.pyc File 11.75 KB 0644
DataSourceOpenStack.cpython-36.opt-1.pyc File 7.91 KB 0644
DataSourceOpenStack.cpython-36.pyc File 7.91 KB 0644
DataSourceOracle.cpython-36.opt-1.pyc File 10.99 KB 0644
DataSourceOracle.cpython-36.pyc File 10.99 KB 0644
DataSourceRbxCloud.cpython-36.opt-1.pyc File 7.19 KB 0644
DataSourceRbxCloud.cpython-36.pyc File 7.19 KB 0644
DataSourceScaleway.cpython-36.opt-1.pyc File 10.84 KB 0644
DataSourceScaleway.cpython-36.pyc File 10.84 KB 0644
DataSourceSmartOS.cpython-36.opt-1.pyc File 24.51 KB 0644
DataSourceSmartOS.cpython-36.pyc File 24.51 KB 0644
DataSourceUpCloud.cpython-36.opt-1.pyc File 4.36 KB 0644
DataSourceUpCloud.cpython-36.pyc File 4.36 KB 0644
DataSourceVMware.cpython-36.opt-1.pyc File 23.66 KB 0644
DataSourceVMware.cpython-36.pyc File 23.66 KB 0644
DataSourceVultr.cpython-36.opt-1.pyc File 3.44 KB 0644
DataSourceVultr.cpython-36.pyc File 3.44 KB 0644
__init__.cpython-36.opt-1.pyc File 30.52 KB 0644
__init__.cpython-36.pyc File 30.52 KB 0644