HEX
Server: nginx/1.24.0
System: Linux localhost 5.15.0-46-generic #49-Ubuntu SMP Thu Aug 4 18:03:25 UTC 2022 x86_64
User: www (1000)
PHP: 8.3.27
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: //proc/93580/root/lib/python3/dist-packages/cloudinit/__pycache__/cloud.cpython-310.pyc
o

t��h��@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