| Server IP : 39.108.156.168 / Your IP : 216.73.216.104 Web Server : nginx/1.24.0 System : Linux e2.ksyuki.com 6.11.0-25-generic #25~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Apr 15 17:20:50 UTC 2 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/ |
Upload File : |
�
��i� � � � d Z ddlZddlZddlZddlZddlmZ ddlmZm Z m
Z
mZ dZ e� j Z ej e� Zd
d�Zdd�Zd� Zed k( r- ej* ee e� j- � � � yy)z,Debug jinja template rendering of user-data.� N)�read_cfg_paths)�JinjaLoadError�JinjaSyntaxParsingException�
NotJinjaError�render_jinja_payload_from_file�renderc �� � | st j t t �� } | j dt
d�� | j ddt
dt � ��� | j dd d
dd�
� | S )a Build or extend and arg parser for jinja render utility.
@param parser: Optional existing ArgumentParser instance representing the
subcommand which will be extended to support the args of this utility.
@returns: ArgumentParser with proper argument configuration.
)�prog�description� user_dataz$Path to the user-data file to render)�type�helpz-iz--instance-dataz6Optional path to instance-data.json file. Defaults to z-dz--debug�
store_trueFz+Add verbose messages during template render)�action�defaultr )�argparse�ArgumentParser�NAME�__doc__�add_argument�str�CLOUDINIT_RUN_DIR)�parsers �</usr/lib/python3/dist-packages/cloudinit/cmd/devel/render.py�
get_parserr s� � � ��(�(�d��H��
����#�$J� � � �����
�
�,�-�
/� � � �������
:� � � �M� c � � |r|}n�t � }t j � }|j d� }|dk( rJ|j d� }t j j |� st j d||� |}n|}t j j |� st j d|� y t | � 5 }|j � }ddd� t | ||rd nd
�� } | st j d| � yt$ j&