File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/__pycache__/payload.cpython-310.pyc
Back
o ;jK5 � @ s� d Z ddlZddlZddlZddlZddlZddlm m Z ddlZddlZddl mZ ddlmZmZ ddlmZ zddlZW n eyJ Y nw e�e�Zdd� Zdd � Zd d� Zdd d�Zddd�Zdd� Zdd� ZG dd� d�Z G dd� d�Z!dS )z� Many aspects of the salt payload need to be managed, from the return of encrypted keys to general payload dynamics and packaging, these happen in here � N)� _Constant)�SaltDeserializationError�SaltReqTimeoutError)�CaseInsensitiveDictc C s t jj�| �S )z� This method for now just wraps msgpack.dumps, but it is here so that we can make the serialization a custom option in the future with ease. )�salt�utils�msgpack�dumps)�payload� r �@/opt/saltstack/salt/lib/python3.10/site-packages/salt/payload.py�package s r c C s t jjj| dd�S )z Unpackages a payload T)�use_list)r r r �loads)Zpackage_r r r � unpackage% s r c K s2 d| i}i }|D ]}|| ||<