#NEWLINE# def main( dry_run ) : #NEWLINE# #INDENT# logs = get_targets ( ) #NEWLINE# migrate_log ( logs ) #NEWLINE# if ( not dry_run ) : #NEWLINE# #INDENT# logger . info ( 'Finished migrate {} logs ' . format ( len ( dry_run ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# raise RuntimeError ( 'Dry Run -- Transaction rolled back' )