#NEWLINE# def shutdown( self , exitcode = 0 , exitmsg = None ) : #NEWLINE# #INDENT# '\n        If sub-classed, run any shutdown operations on this method.\n\n        :param exitcode\n        :param exitmsg\n        ' #NEWLINE# if ( hasattr ( self , 'minion' ) and ( 'proxymodule' in self . minion . opts ) ) : #NEWLINE# #INDENT# proxy_fn = ( self . minion . opts [ 'proxymodule' ] . loaded_base_name + '.shutdown' ) #NEWLINE# self . minion . opts [ 'proxymodule' ] [ proxy_fn ] ( self . minion . opts ) #NEWLINE# #UNINDENT# self . action_log_info ( 'Shutting down' ) #NEWLINE# super ( ProxyMinion , self ) . shutdown ( exitcode , 'The Salt {0} is shutdown. {1}' . format ( self . __class__ . __name__ , ( exitmsg or '' ) ) . strip ( ) )