File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/__pycache__/state.cpython-310.pyc
Back
o ;j!b � @ sF d Z ddlZddlZddlZddlZddlZddlZddlZddlm Z ddl ZddlZddl ZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlm Z m!Z! ddl"m#Z# ddl$m%a& dgZ'dddddddddddddd � Z(d diZ)e�*e+�Z,dZ-d d� Z.dd� Z/dxdd�Z0dxdd�Z1dydd�Z2dd� Z3dd� Z4dxdd�Z5dxdd�Z6dxdd �Z7dzd!d"�Z8dxd#d$�Z9 d{d&d'�Z%d|d)d*�Z:d+d,� Z;d-d.� Z<d/d0� Z=d1d2� Z>d3d4� Z?d5d6� Z@dxd7d8�ZAdxd9d:�ZBdzd;d<�ZCdxd=d>�ZDdxd?d@�ZEdxdAd �ZFdBdC� ZGdxdDdE�ZHdxdFdG�ZIdxdHdI�ZJd}dKdL�ZKd~dMd�ZL ddNdO�ZMdzdPdQ�ZNdxdRdS�ZOdxdTdU�ZPdxdVdW�ZQdxdXdY�ZRd~dZd[�ZSdzd\d]�ZTdzd^d_�ZUdzd`da�ZVdzdbdc�ZWdxddde�ZXdzdfdg�ZYdhdi� ZZdxdjdk�Z[dldm� Z\dndo� Z]dpdq� Z^drds� Z_ ud�dvdw�Z`dS )�aB Control the state system on the minion. State Caching ------------- When a highstate is called, the minion automatically caches a copy of the last high data. If you then run a highstate with cache=True it will use that cached highdata and won't hit the fileserver except for ``salt://`` links in the states themselves. � N)�OrderedDict)�CommandExecutionError�SaltInvocationError)�_format_cached_grains)�orchestrate�*� highstate) �sls�sls_id�pkg�top�singler �template�template_str�apply_�test�request� check_request�run_requestr Zapply�statec C s t jj�tt� �atS )z Set the virtualname )�salt�utils� functoolsZnamespaced_function�_orchestrate�globals�__virtualname__� r r �F/opt/saltstack/salt/lib/python3.10/site-packages/salt/modules/state.py�__virtual__G s r c C s dd� | � � D �}|S )z7 Filter out the result: True + no changes data c S s&