#NEWLINE# def _format_return_data( retcode , stdout = None , stderr = None ) : #NEWLINE# #INDENT# '\n    Creates a dictionary from the parameters, which can be used to return data\n    to Salt.\n    ' #NEWLINE# ret = { #NEWLINE# #INDENT# 'retcode' : retcode , #NEWLINE# #UNINDENT# } #NEWLINE# if ( stdout is not None ) : #NEWLINE# #INDENT# ret [ 'stdout' ] = stdout #NEWLINE# #UNINDENT# if ( stderr is not None ) : #NEWLINE# #INDENT# ret [ 'stderr' ] = stderr #NEWLINE# #UNINDENT# return ret