%PDF- %PDF-
| Direktori : /proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/utils/ |
| Current File : //proc/self/root/proc/thread-self/root/usr/lib/python2.7/site-packages/salt/utils/error.pyo |
�
���^c @@ sx d Z d d l m Z m Z m Z d d l Z d d l Z d d l m Z
d d d d � Z d � Z
d d d � Z d S(
uE
Utilities to enable exception reraising across the master commands
i ( t absolute_importt unicode_literalst print_functionN( t builtinsu c C@ s� | p d } t t j | � r3 t t j | � } n9 t t | � rT t t | � } n d } t t j | � } | d k r� | | � � n | | � � d S( u�
Raise an exception with __name__ from name, args from args
If args is None Otherwise message from message If name is empty then use "Exception"
u Exceptionu
SaltExceptionN( t hasattrt saltt
exceptionst getattrt None( t namet argst messaget ex( ( s4 /usr/lib/python2.7/site-packages/salt/utils/error.pyt raise_error s c C@ s? t | d � r | j � } n i | j � d 6| j d 6} | S( Nu packu messageu args( R t packt __unicode__R
( t exct packed_exception( ( s4 /usr/lib/python2.7/site-packages/salt/utils/error.pyt pack_exception$ s u minionc C@ sP | d k r i } n t j j j | d | d t �} | j t | � d � d S( u1
Fire raw exception across the event bus
t optst listenu _salt_errorN( R R t utilst eventt SaltEventt Falset
fire_eventR ( R R t jobt nodeR ( ( s4 /usr/lib/python2.7/site-packages/salt/utils/error.pyt fire_exception, s !( t __doc__t
__future__R R R t salt.exceptionsR t salt.utils.eventt salt.ext.six.movesR R R R
R R ( ( ( s4 /usr/lib/python2.7/site-packages/salt/utils/error.pyt <module> s