%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /snap/core/17212/usr/lib/python3/dist-packages/cloudinit/__pycache__/
Upload File :
Create Path :
Current File : //snap/core/17212/usr/lib/python3/dist-packages/cloudinit/__pycache__/cloud.cpython-35.pyc



"�T`��@saddlZddlZddlmZddlmZeje�Z	Gdd�de
�ZdS)�N)�log)�eventsc@s�eZdZddd�Zdd�Zedd��Zddd	d
�Zdd�Zd
dd�Z	dd�Z
edd��Zdd�Zdd�Z
dddd�Zdd�Zddd�Zddd�Zdd d!�ZdS)"�CloudNcCsd||_||_||_||_||_|dkrWtjdddddd�}||_dS)N�namezunnamed-cloud-reporterZdescriptionZreporting_enabledF)�
datasource�paths�distro�_cfg�_runnersrZReportEventStack�reporter)�selfrr�cfgrZrunnersr�r�1/usr/lib/python3/dist-packages/cloudinit/cloud.py�__init__s							zCloud.__init__cCstj�tj|j�dS)N)�loggingZresetLoggingZsetupLoggingr
)rrrr�
cycle_logging,s
zCloud.cycle_loggingcCstj|j�S)N)�copy�deepcopyr	)rrrrr
0sz	Cloud.cfgFcCs|jj|||||�S)N)r
�run)rrZfunctor�argsZfreqZ
clear_on_failrrrr5sz	Cloud.runcCsI|jj|}tjj|�sEtjdtjj|�|�dS|S)Nz-No template found in %s for template named %s)rZtemplate_tpl�os�path�isfile�LOGZwarning�dirname)rr�fnrrr�get_template_filename8s	zCloud.get_template_filenameTcCs|jj|�S)N)r�get_userdata)rZapply_filterrrrrAszCloud.get_userdatacCs
|jj�S)N)r�get_instance_id)rrrrrDszCloud.get_instance_idcCs
|jjS)N)r�launch_index)rrrrr GszCloud.launch_indexcCs
|jj�S)N)r�get_public_ssh_keys)rrrrr!KszCloud.get_public_ssh_keyscCs
|jj�S)N)r�
get_locale)rrrrr"NszCloud.get_localecCs|jjd|d|�S)N�fqdn�
metadata_only)r�get_hostname)rr#r$rrrr%QszCloud.get_hostnamecCs|jj|�S)N)r�device_name_to_device)rrrrrr&UszCloud.device_name_to_devicecCs|jj|�S)N)r�
get_ipath_cur)rrrrrr'XszCloud.get_ipath_curcCs|jj|�S)N)r�	get_cpath)rrrrrr([szCloud.get_cpathcCs|jj|�S)N)r�	get_ipath)rrrrrr)^szCloud.get_ipath)�__name__�
__module__�__qualname__rr�propertyr
rrrrr r!r"r%r&r'r(r)rrrrrs	r)rrZ	cloudinitrrZcloudinit.reportingrZ	getLoggerr*r�objectrrrrr�<module>s


Zerion Mini Shell 1.0