File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/__pycache__/scripts.cpython-310.pyc
Back
o ;jwZ � @ sT d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddlmZ ddl ZddlmZmZmZ e�e�Zdd� Zdd� Zd d � Zdd� Zd d� Zdd� Zdd� Zdd� Zdd� Zdd� Zdd� Z dd� Z!dd� Z"dd � Z#d!d"� Z$d#d$� Z%d%d&� Z&d'd(� Z'd)d*� Z(d+d,� Z)d-d.� Z*d/d0� Z+d1d2� Z,d3d4� Z-d7d5d6�Z.dS )8zI This module contains the function calls to execute command line scripts � N)�randint)�SaltClientError�SaltReqTimeoutError�SaltSystemExitc C s� z| j j}W n ttfy d}Y nw |tjkr6d}z| jjd }|d�|�7 }W n ttfy5 Y nw d }|d u r@|r@d}|rJt |t jdd� |rizt� � }t�|� W n ty` Y nw t �tjjj� t �tjjj� d S )NFz Exiting gracefully on Ctrl-c�jidz� This job's jid is: {0} The minions may not have all finished running and any remaining minions will return upon completion. To look up the return data for this job later, run the following command: salt-run jobs.lookup_jid {0}z" Exiting with hard crash on Ctrl-cT��file�flush)�options� hard_crash�AttributeError�KeyError�signal�SIGINTZlocal_clientZpub_data�format�print�sys�stderr� traceback� format_exc�log�error�exit�salt�defaults� exitcodes� EX_GENERIC�EX_OK)�client�signum�sigframeZ hardcrashZexit_msgr �trace� r"