#NEWLINE# def returner( ret ) : #NEWLINE# #INDENT# '\n    Send a message to Nagios with the data\n    ' #NEWLINE# _options = _get_options ( ret ) #NEWLINE# log . debug ( '_options {0}' . format ( _options ) ) #NEWLINE# _options [ 'hostname' ] = ret . get ( 'id' ) #NEWLINE# if ( ( 'url' not in _options ) or ( _options [ 'url' ] == '' ) ) : #NEWLINE# #INDENT# log . error ( 'nagios_nrdp.url not defined in salt config' ) #NEWLINE# return #NEWLINE# #UNINDENT# if ( ( 'token' not in _options ) or ( _options [ 'token' ] == '' ) ) : #NEWLINE# #INDENT# log . error ( 'nagios_nrdp.token not defined in salt config' ) #NEWLINE# return #NEWLINE# #UNINDENT# xml = _prepare_xml ( options = _options , state = ret [ 'return' ] ) #NEWLINE# res = _post_data ( options = _options , xml = xml ) #NEWLINE# return res