#NEWLINE# def modify_job( self , name , schedule , persist = True , where = None ) : #NEWLINE# #INDENT# '\n        Modify a job in the scheduler.\n        ' #NEWLINE# if ( where == 'pillar' ) : #NEWLINE# #INDENT# if ( schedule in self . opts [ 'pillar' ] [ 'schedule' ] ) : #NEWLINE# #INDENT# self . delete_job ( name , persist , where = where ) #NEWLINE# #UNINDENT# self . opts [ 'pillar' ] [ 'schedule' ] [ name ] = schedule #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( name in self . opts [ 'schedule' ] ) : #NEWLINE# #INDENT# self . delete_job ( name , persist , where = where ) #NEWLINE# #UNINDENT# self . opts [ 'schedule' ] [ name ] = schedule #NEWLINE# #UNINDENT# if persist : #NEWLINE# #INDENT# self . persist ( )