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 : /usr/lib/python3.6/site-packages/cloudinit/config/__pycache__/ |
Upload File : |
3 ��b} � @ s� U d Z ddlZddlmZ ddlmZ ddlmZmZm Z ddl mZmZ ddl mZ ddlmZ ed g�Zd Zddd eegeed�gd�Zeee�Z dd� 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 frequencyZexamplesc C sZ t � }|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_header0 s r c C s t j| ddd�}|j� S )NF)Zexplicit_startZexplicit_end)r �dumps�rstrip)�objr r r r �_dumps; s r c C s� t j|ddd�}|r"|d }d}nt j|d�}|sB|jd| � dS tj|�}xtD ]}|j|d� qRW t|�} x"| D ]}|jd �rt|j|d� qtW t � } | 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�t j|dj|�dd� nt jdj|�ddd� dS )z'Handler method activated by cloud-init.�debug�verboseT)�defaultr �outputz3Skipping module named %s, verbose printing disabledN�_ZConfigr ZMetaDataZMisczDatasource: %s zDistro: %s z Hostname: %s zInstance ID: %s zLocale: %s zLaunch IDX: %s zci-info: %s � i� �wF)Zconsole�stderr)r r )r r"