| Server IP : 138.197.162.186 / Your IP : 216.73.216.184 Web Server : nginx/1.24.0 System : Linux ubuntu-s-1vcpu-512mb-10gb-tor1 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : www-data ( 33) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/ |
Upload File : |
�
x[h� � � � 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&