%PDF- %PDF-
Direktori : /proc/self/root/lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/ |
Current File : //proc/self/root/lib/python3/dist-packages/cloudinit/cmd/devel/__pycache__/render.cpython-312.pyc |
� 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&