shell bypass 403

Cubjrnet7 Shell


name : cloud.cpython-39.pyc
a

'�Dg��@stddlZddlZddlZddlmZddlmZddlmZm	Z	ddl
mZddlm
Z
e�e�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@||_||_||_||_||_|dur6tjdddd�}||_dS)Nzunnamed-cloud-reporterF)�name�descriptionZreporting_enabled)r	r
r�_cfg�_runnersr�ReportEventStackr)�selfr	r
rrr
r�r�3/usr/lib/python3.9/site-packages/cloudinit/cloud.py�__init__ s	�zCloud.__init__cCst�|j�S�N)�copy�deepcopyr�rrrrr6sz	Cloud.cfgFcCs|j�|||||�S)a�Run a function gated by a named semaphore for a desired frequency.

        The typical case for this method would be to limit running of the
        provided func to a single well-defined frequency:
            PER_INSTANCE, PER_BOOT or PER_ONCE

        The semaphore provides a gate that persists across cloud-init
        boot stage boundaries so multiple modules can share this state
        even if they happen to be run in different boot stages or across
        reboots.
        )r�run)rrZfunctor�argsZfreqZ
clear_on_failrrrr;sz	Cloud.runcCs6|jj|}tj�|�s2t�dtj�|�|�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_filenameIs
�zCloud.get_template_filenameTcCs|j�|�Sr)r	�get_userdata)rZapply_filterrrrr%UszCloud.get_userdatacCs
|j��Sr)r	�get_instance_idrrrrr&XszCloud.get_instance_idcCs|jjSr)r	�launch_indexrrrrr'[szCloud.launch_indexcCs
|j��Sr)r	�get_public_ssh_keysrrrrr(_szCloud.get_public_ssh_keyscCs
|j��Sr)r	�
get_localerrrrr)bszCloud.get_localecCs|jj||d�S)N)�fqdn�
metadata_only)r	�get_hostname)rr*r+rrrr,es�zCloud.get_hostnamecCs|j�|�Sr)r	�device_name_to_device�rrrrrr-jszCloud.device_name_to_devicecCs|j�|�Sr)r
�
get_ipath_curr.rrrr/mszCloud.get_ipath_curcCs|j�|�Sr)r
�	get_cpathr.rrrr0pszCloud.get_cpathcCs|j�|�Sr)r
�	get_ipathr.rrrr1sszCloud.get_ipath)N)NF)T)FF)N)N)N)�__name__�
__module__�__qualname__rr�dictrrrrrr�propertyrrr$r%r&r'r(r)r,r-r/r0r1rrrrrs0��






r)rZloggingr�typingrZcloudinit.distrosrZcloudinit.helpersrrZcloudinit.reportingrZcloudinit.sourcesrZ	getLoggerr2r!rrrrr�<module>s


© 2025 Cubjrnet7