BYPASS SHELL BY ./RAZORGANZ
Server: nginx/1.20.1
System: Linux iZdzfnv9mwfppeZ 5.10.134-19.2.al8.x86_64 #1 SMP Wed Oct 29 22:47:09 CST 2025 x86_64
User: apache (48)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/cloudinit/sources/__pycache__/DataSourceAliYun.cpython-36.opt-1.pyc
3

�q�h��@s�ddlZddlmZmZddlmZeje�Z	dZ
Gdd�dej�Zdd�ZGd	d
�d
e�Z
e
ejffeejejffgZdd�ZdS)
�N)�dmi�sources)�DataSourceApsarazAlibaba Cloud ECSc@s$eZdZdZdd�Zedd��ZdS)�DataSourceAliYunZAliYuncCst�r|jj�SdS)NZNO_ALIYUN_METADATA)�
_is_aliyun�dsname�lower)�self�r
�&/usr/lib/python3.6/DataSourceAliYun.py�_get_cloud_names
z DataSourceAliYun._get_cloud_namecCsdS)NzX-aliyun-ecs-metadata-tokenr
)r	r
r
r�imdsv2_token_put_headersz(DataSourceAliYun.imdsv2_token_put_headerN)�__name__�
__module__�__qualname__rr�propertyr
r
r
r
rrsrcCstjd�tkS)Nzsystem-product-name)rZ
read_dmi_data�ALIYUN_PRODUCTr
r
r
rrsrc@seZdZdZdZdS)�DataSourceAliYunLocalayDatasource run at init-local which sets up network to query metadata.

    In init-local, no network is available. This subclass sets up minimal
    networking with dhclient on a viable nic so that it can talk to the
    metadata service. If the metadata service provides network configuration
    then render the network configuration for that instance based on metadata.
    TN)rrr�__doc__Zperform_dhcp_setupr
r
r
rrsrcCstj|t�S)N)rZlist_from_depends�datasources)Zdependsr
r
r�get_datasource_list0sr)ZloggingZ	cloudinitrrZcloudinit.sourcesrZapsaraZ	getLoggerrZLOGrrrrZDEP_FILESYSTEMZDEP_NETWORKrrr
r
r
r�<module>s