%PDF- %PDF-
Direktori : /lib/python2.7/site-packages/salt/modules/ |
Current File : //lib/python2.7/site-packages/salt/modules/out.pyc |
� ���^c @@ s� d Z d d l m Z m Z m Z d d l Z e j e � Z d d l Z d Z d g Z d � Z d d d � Z d d d � Z d d d � Z d S( u� Output Module ============= .. versionadded:: 2018.3.0 Execution module that processes JSON serializable data and returns string having the format as processed by the outputters. Although this does not bring much value on the CLI, it turns very handy in applications that require human readable data rather than Python objects. For example, inside a Jinja template: .. code-block:: jinja {{ salt.out.string_format(complex_object, out='highstate') }} i ( t absolute_importt print_functiont unicode_literalsNu outu *c C@ s t S( N( t __virtualname__( ( ( s4 /usr/lib/python2.7/site-packages/salt/modules/out.pyt __virtual__! s u nestedc K@ s+ | s t } n t j j | | d | | �S( u� Return the formatted outputter string for the Python object. data The JSON serializable object. out: ``nested`` The name of the output to use to transform the data. Default: ``nested``. opts Dictionary of configuration options. Default: ``__opts__``. kwargs Arguments to sent to the outputter module. CLI Example: .. code-block:: bash salt '*' out.out_format "{'key': 'value'}" t opts( t __opts__t saltt outputt out_format( t datat outR t kwargs( ( s4 /usr/lib/python2.7/site-packages/salt/modules/out.pyR % s c K@ s+ | s t } n t j j | | d | | �S( u� Return the outputter formatted string, removing the ANSI escape sequences. data The JSON serializable object. out: ``nested`` The name of the output to use to transform the data. Default: ``nested``. opts Dictionary of configuration options. Default: ``__opts__``. kwargs Arguments to sent to the outputter module. CLI Example: .. code-block:: bash salt '*' out.string_format "{'key': 'value'}" out=table R ( R R R t string_format( R R R R ( ( s4 /usr/lib/python2.7/site-packages/salt/modules/out.pyR @ s c K@ s+ | s t } n t j j | | d | | �S( u� Return the formatted string as HTML. data The JSON serializable object. out: ``nested`` The name of the output to use to transform the data. Default: ``nested``. opts Dictionary of configuration options. Default: ``__opts__``. kwargs Arguments to sent to the outputter module. CLI Example: .. code-block:: bash salt '*' out.html_format "{'key': 'value'}" out=yaml R ( R R R t html_format( R R R R ( ( s4 /usr/lib/python2.7/site-packages/salt/modules/out.pyR [ s ( t __doc__t __future__R R R t loggingt getLoggert __name__t logt salt.outputR R t __proxyenabled__R t NoneR R R ( ( ( s4 /usr/lib/python2.7/site-packages/salt/modules/out.pyt <module> s