#NEWLINE# def _check_cron( user , cmd , minute = None , hour = None , daymonth = None , month = None , dayweek = None , comment = None , commented = None , identifier = None ) : #NEWLINE# #INDENT# '\n    Return the changes\n    ' #NEWLINE# if ( minute is not None ) : #NEWLINE# #INDENT# minute = str ( minute ) . lower ( ) #NEWLINE# #UNINDENT# if ( hour is not None ) : #NEWLINE# #INDENT# hour = str ( hour ) . lower ( ) #NEWLINE# #UNINDENT# if ( daymonth is not None ) : #NEWLINE# #INDENT# daymonth = str ( daymonth ) . lower ( ) #NEWLINE# #UNINDENT# if ( month is not None ) : #NEWLINE# #INDENT# month = str ( month ) . lower ( ) #NEWLINE# #UNINDENT# if ( dayweek is not None ) : #NEWLINE# #INDENT# dayweek = str ( dayweek ) . lower ( ) #NEWLINE# #UNINDENT# if ( identifier is not None ) : #NEWLINE# #INDENT# identifier = str ( identifier ) #NEWLINE# #UNINDENT# if ( commented is not None ) : #NEWLINE# #INDENT# commented = ( commented is True ) #NEWLINE# #UNINDENT# if ( cmd is not None ) : #NEWLINE# #INDENT# cmd = str ( cmd ) #NEWLINE# #UNINDENT# lst = __salt__ [ 'cron.list_tab' ] ( user ) #NEWLINE# for cron in lst [ 'crons' ] : #NEWLINE# #INDENT# if _cron_matched ( cron , cmd , identifier ) : #NEWLINE# #INDENT# if any ( [ _needs_change ( x , y ) for ( x , y ) in ( ( cron [ 'minute' ] , minute ) , ( cron [ 'hour' ] , hour ) , ( cron [ 'daymonth' ] , daymonth ) , ( y [ 'month' ] , month ) , ( cron [ 'dayweek' ] , dayweek ) , ( cron [ 'identifier' ] , identifier ) , ( cron [ 'cmd' ] , cmd ) , ( cron [ 'comment' ] , comment ) , ( cron [ 'commented' ] , commented ) ) ] ) : #NEWLINE# #INDENT# return 'update' #NEWLINE# #UNINDENT# return 'present' #NEWLINE# #UNINDENT# #UNINDENT# return 'absent'