File: //opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/__pycache__/batch.cpython-310.pyc
o
�N�g=5 � @ sp d Z ddlZddlZddlZddlZddlmZmZ ddlZddl Zddl
ZddlZe�e
�ZG dd� d�ZdS )z
Execute batch runs
� N)�datetime� timedeltac @ s: e Zd ZdZddd�Zdd� Zdd � Zd
d� Zdd
� ZdS )�Batchz-
Manage the execution of batch runs
NFc C sH || _ |r|ni | _|r|ni | _|| _|| _tjj|d dd�| _dS )a
:param dict opts: A config options dictionary.
:param dict eauth: An eauth config to use.
The default is an empty dict.
:param bool quiet: Suppress printing to stdout
The default is False.
Z conf_fileT)�listenN) �opts�eauth�
pub_kwargs�quiet�options�salt�clientZget_local_client�local)�selfr r r Z_parser� r �B/opt/saltstack/salt/lib/python3.10/site-packages/salt/cli/batch.py�__init__ s zBatch.__init__c C s< | j d dg | j d g}| j �dd�}|dur|�|� n
|�| j �dd�� d| jd <