File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/templates.cpython-310.pyc
Back
o ;j:a � @ s d Z ddlZddlZddlZddlZddlZddlZddlZddl Z ddl mZ ddlm Z ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlmZ ddlm Z m!Z!m"Z" ddl#m$Z$ ddl%m&Z& dd l'm(Z(m)Z)m*Z* dd l+m,Z, e�-e.�Z/ej0�1ed d�Z2dZ3e�4e3�Z5G d d� d�Z6G dd� d�Z7dd� Z8dd� Z9dd� Z:dd� Z;dd� Z<d+dd�Z=d+dd�Z>d+dd �Z?d+d!d"�Z@d+d#d$�ZAd+d%d&�ZBd,d(d)�ZCe9e>�ZDe9e?�ZEe9e@�ZFe9eA�ZGe9eB�ZHeDeEeCeFeGeHd*�ZIdS )-z Template render systems � N)�OrderedDict)�Path)�__path__)�CommandExecutionError�SaltInvocationError�SaltRenderError)�NamedLoaderContext)�__file_client__)�JinjaFilter�JinjaGlobal� JinjaTest)�VersionZ templateszutf-8c @ s0 e Zd ZdZdd� Zdd� Zdd� Zdd � Zd S )� AliasedLoaderah Light wrapper around the LazyLoader to redirect 'cmd.run' calls to 'cmd.shell', for easy use of shellisms during templating calls Dotted aliases ('cmd.run') must resolve to another dotted alias (e.g. 'cmd.shell') Non-dotted aliases ('cmd') must resolve to a dictionary of function aliases for that module (e.g. {'run': 'shell'}) c C s || _ d S �N��wrapped)�selfr � r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/templates.py�__init__<