HEX
Server: Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System: Linux ns565604.ip-54-39-133.net 4.18.0-553.50.1.el8_10.x86_64 #1 SMP Tue Apr 15 08:09:22 EDT 2025 x86_64
User: greer489 (1034)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/cloudinit/__pycache__/cloud.cpython-36.pyc
3

\�me��@stddlZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
eje�ZGdd�d�ZdS)	�N)�Optional)�Distro)�Paths�Runners)�events)�
DataSourcec@s�eZdZd!eeeeeee	j
d�dd�Zedd��Z
d"dd	�Zd
d�Zd#d
d�Zdd�Zedd��Zdd�Zdd�Zd$dd�Zdd�Zd%dd�Zd&dd�Zd'dd �ZdS)(�CloudN)�
datasource�paths�cfg�distro�runners�reportercCs@||_||_||_||_||_|dkr6tjdddd�}||_dS)Nzunnamed-cloud-reporterF)�name�descriptionZreporting_enabled)r	r
r�_cfg�_runnersr�ReportEventStackr)�selfr	r
rrr
r�r�/usr/lib/python3.6/cloud.py�__init__ s	zCloud.__init__cCstj|j�S)N)�copy�deepcopyr)rrrrr6sz	Cloud.cfgFcCs|jj|||||�S)N)r�run)rrZfunctor�argsZfreqZ
clear_on_failrrrr;sz	Cloud.runcCs6|jj|}tjj|�s2tjdtjj|�|�dS|S)Nz-No template found in %s for template named %s)r
Ztemplate_tpl�os�path�isfile�LOGZwarning�dirname)rr�fnrrr�get_template_filename>s
zCloud.get_template_filenameTcCs|jj|�S)N)r	�get_userdata)rZapply_filterrrrr#JszCloud.get_userdatacCs
|jj�S)N)r	�get_instance_id)rrrrr$MszCloud.get_instance_idcCs|jjS)N)r	�launch_index)rrrrr%PszCloud.launch_indexcCs
|jj�S)N)r	�get_public_ssh_keys)rrrrr&TszCloud.get_public_ssh_keyscCs
|jj�S)N)r	�
get_locale)rrrrr'WszCloud.get_localecCs|jj||d�S)N)�fqdn�
metadata_only)r	�get_hostname)rr(r)rrrr*ZszCloud.get_hostnamecCs|jj|�S)N)r	�device_name_to_device)rrrrrr+_szCloud.device_name_to_devicecCs|jj|�S)N)r
�
get_ipath_cur)rrrrrr,bszCloud.get_ipath_curcCs|jj|�S)N)r
�	get_cpath)rrrrrr-eszCloud.get_cpathcCs|jj|�S)N)r
�	get_ipath)rrrrrr.hszCloud.get_ipath)N)NF)T)FF)N)N)N)�__name__�
__module__�__qualname__rr�dictrrrrrr�propertyrrr"r#r$r%r&r'r*r+r,r-r.rrrrrs 




r)rZloggingrZtypingrZcloudinit.distrosrZcloudinit.helpersrrZcloudinit.reportingrZcloudinit.sourcesrZ	getLoggerr/rrrrrr�<module>s