403Webshell
Server IP : 156.238.232.47  /  Your IP : 216.73.216.150
Web Server : nginx/1.25.3
System : Linux C202504152095410 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : www ( 1000)
PHP Version : 8.3.25
Disable Function : 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
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python2.7/site-packages/cloudinit/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python2.7/site-packages/cloudinit/config/cc_debug.pyo
�
oB�]c@s�dZddlZddlmZddlmZddlmZddlmZedg�Z	d�Z
d	�Zd
�ZdS(sQ
Debug
-----
**Summary:** helper to debug cloud-init *internal* datastructures.

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.

**Internal name:** ``cc_debug``

**Module frequency:** per instance

**Supported distros:** all

**Config keys**::

    debug:
       verbose: true/false (defaulting to true)
       output: (location to write output, defaulting to console + log)
i����N(tStringIO(t
type_utils(tutil(tsafeyamltlog_cfgscCsut�}|jdd�|jd�|j|jdd��|jd�|jdd�|jd�|j�S(Nt-iPs
t (Rtwritetcentertgetvalue(ttexttheader((s=/usr/lib/python2.7/site-packages/cloudinit/config/cc_debug.pyt_make_header)s	


cCs%tj|dtdt�}|j�S(Ntexplicit_starttexplicit_end(RtdumpstFalsetrstrip(tobjR
((s=/usr/lib/python2.7/site-packages/cloudinit/config/cc_debug.pyt_dumps4scCsxtj|ddt�}|r1|d}t}ntj|d�}|s]|jd|�dStj|�}xtD]}|j|d�qsWt	|�}	x0|	D](}|j
d�r�|j|d�q�q�Wt�}
|
jt
d	��|
jt|��|
jd
�|
jt
d��|
jt|jj��|
jd
�|
jt
d��|
jd
tj|j��|
jdtj|j��|
jd|jt��|
jd|j��|
jd|j��|
jd|j�|
j�}g}x+|j�D]}
d|
}
|j|
�q	W|rRtj|dj|�dd�n"tjdj|�dtdt�dS(s'Handler method activated by cloud-init.tdebugtverbosetdefaultitoutputs3Skipping module named %s, verbose printing disabledNt_tConfigs
tMetaDatatMiscsDatasource: %s
sDistro: %s
s
Hostname: %s
sInstance ID: %s
sLocale: %s
sLaunch IDX: %s
sci-info: %s
ti�twtconsoletstderr(sdebugsverbose(sdebugsoutput(Rtget_cfg_by_pathtTrueRtcopytdeepcopyt	SKIP_KEYStpoptNonetlistt
startswithRRRRt
datasourcetmetadataRtobj_nametdistrotget_hostnametget_instance_idt
get_localetlaunch_indexR	t
splitlinestappendt
write_filetjoint	multi_logR(tnametcfgtcloudtlogtargsRtout_filetdump_cfgtktall_keystto_printtcontentstcontent_to_filetline((s=/usr/lib/python2.7/site-packages/cloudinit/config/cc_debug.pythandle9sN
		

	

	
"(
t__doc__R"tsixRt	cloudinitRRRt	frozensetR$RRRC(((s=/usr/lib/python2.7/site-packages/cloudinit/config/cc_debug.pyt<module>s		

Youez - 2016 - github.com/yon3zu
LinuXploit