403Webshell
Server IP : 104.21.21.239  /  Your IP : 216.73.216.55
Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7
System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.9/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/cloudinit/config/__pycache__/cc_debug.cpython-39.pyc
a

�½b}
�@s�UdZddlZddlmZddlmZddlmZmZm	Z	ddl
mZmZddl
mZddlmZed	g�Zd
Zddd
eegeed�gd�Zeed<ee�Zdd�Zdd�Zdd�ZdS)z<Debug: Helper to debug cloud-init *internal* datastructures.�N)�StringIO)�dedent)�safeyaml�
type_utils�util)�
MetaSchema�get_meta_doc)�ALL_DISTROS)�PER_INSTANCEZlog_cfgsa	This module will enable for outputting various internal information that
cloud-init sources provide to either a file or to the output console/log
location that this cloud-init has been configured with when running.

.. note::
    Log configurations are not output.
Zcc_debugZDebugz4Helper to debug cloud-init *internal* datastructureszc            debug:
              verbose: true
              output: /tmp/my_debug.log
            )�id�name�title�descriptionZdistrosZ	frequencyZexamples�metacCsRt�}|�d�|�d�|�|�dd��|�d�|�d�|�d�|��S)NzP--------------------------------------------------------------------------------�
�P� )r�write�center�getvalue)�text�header�r�=/usr/lib/python3.9/site-packages/cloudinit/config/cc_debug.py�_make_header0s




rcCstj|ddd�}|��S)NF)Zexplicit_startZexplicit_end)r�dumps�rstrip)�objrrrr�_dumps;srcCs�tj|ddd�}|r"|d}d}nt�|d�}|sB|�d|�dSt�|�}tD]}|�|d�qPt|�}	|	D]}|�d�rn|�|d�qnt	�}
|
�
td	��|
�
t|��|
�
d
�|
�
td��|
�
t|j
j��|
�
d
�|
�
td��|
�
d
t�|j
��|
�
dt�|j��|
�
d|�d��|
�
d|���|
�
d|���|
�
d|j�|
��}g}|��D]}
d|
}
|�|
��qv|�r�t�|d�|�dd�ntjd�|�ddd�dS)z'Handler method activated by cloud-init.)�debug�verboseT)�defaultr)r�outputz3Skipping module named %s, verbose printing disabledN�_ZConfigrZMetaDataZMisczDatasource: %s
zDistro: %s
z
Hostname: %s
zInstance ID: %s
zLocale: %s
zLaunch IDX: %s
zci-info: %s
�i��wF)Zconsole�stderr)rZget_cfg_by_pathr�copyZdeepcopy�	SKIP_KEYS�pop�list�
startswithrrrrZ
datasource�metadatarZobj_nameZdistroZget_hostnameZget_instance_idZ
get_localeZlaunch_indexr�
splitlines�appendZ
write_file�joinZ	multi_log)rZcfgZcloud�log�argsr Zout_fileZdump_cfg�kZall_keysZto_print�contentsZcontent_to_file�linerrr�handle@sN



�r5)�__doc__r'�ior�textwraprZ	cloudinitrrrZcloudinit.config.schemarrZcloudinit.distrosr	Zcloudinit.settingsr
�	frozensetr(ZMODULE_DESCRIPTIONr�__annotations__rrr5rrrr�<module>s0

���

Youez - 2016 - github.com/yon3zu
LinuXploit