#NEWLINE# def show_highstate( queue = False , **kwargs ) : #NEWLINE# #INDENT# "\n    Retrieve the highstate data from the salt master and display it\n\n    Custom Pillar data can be passed with the ``pillar`` kwarg.\n\n    CLI Example:\n\n    .. code-block:: bash\n\n        salt '*' state.show_highstate\n    " #NEWLINE# conflict = _check_queue ( queue , kwargs ) #NEWLINE# if ( conflict is not None ) : #NEWLINE# #INDENT# return conflict #NEWLINE# #UNINDENT# pillar = kwargs . get ( 'pillar' ) #NEWLINE# pillar_enc = kwargs . get ( 'pillar_enc' ) #NEWLINE# if ( ( pillar_enc is None ) and ( st_ is not None ) and ( not isinstance ( pillar , dict ) ) ) : #NEWLINE# #INDENT# raise SaltInvocationError ( 'Pillar data must be formatted as a dictionary, unless pillar_enc is specified.' ) #NEWLINE# #UNINDENT# st_ = salt . state . HighState ( __opts__ , pillar , pillar_enc = pillar_enc ) #NEWLINE# st_ . push_active ( ) #NEWLINE# try : #NEWLINE# #INDENT# ret = st_ . compile_highstate ( ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# st_ . pop_active ( ) #NEWLINE# #UNINDENT# _set_retcode ( ret ) #NEWLINE# return ret