File manager - Edit - /opt/saltstack/salt/lib/python3.10/site-packages/salt/output/__pycache__/__init__.cpython-310.pyc
Back
o ;j � @ s� d Z ddlZddlZddlZddlZddlZddlZddlZddlZ ddl Z ddlZ ddlZ e� e�Zdd� Zdd� Zdd� Zd d � Zddd�Zdd d�Zddd�Zddd�Zddd�Zdd� ZdS )zg Used to manage the outputter system. This package is the modular system used for managing outputters. � Nc K s� zt ||�| fi |��}|dur|�� W S W dS tttfyo t�t�� � zt d|�| fi |��}|dur?|�� W Y S W Y dS tttfyn tj ddd� t d|�| fi |��}|durj|�� Y Y S Y Y dS w w )zx Safely get the string to print out, try the configured outputter, then fall back to nested and then to raw N�nestedzNested output failed: T)�exc_info�raw) �get_printout�rstrip�KeyError�AttributeError� TypeError�log�debug� traceback� format_exc�error)�data�out�opts�kwargsZprintout� r �H/opt/saltstack/salt/lib/python3.10/site-packages/salt/output/__init__.py�try_printout s( �����r c C s"