#NEWLINE# def undo( self , workflow_dict ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# LOG . info ( 'Remove all backup log files' ) #NEWLINE# backup_log_dict = get_backup_log_configuration_dict ( environment = workflow_dict [ 'environment' ] , databaseinfra = workflow_dict [ 'databaseinfra' ] ) #NEWLINE# if ( backup_log_dict is None ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# instance = workflow_dict [ 'instances' ] [ 0 ] #NEWLINE# host = instance . hostname #NEWLINE# host_csattr = CsHostAttr . objects . get ( host = host ) #NEWLINE# exec_remote_command ( server = host . address , username = host_csattr . vm_user , password = host_csattr . vm_password , command = backup_log_dict [ 'CLEAN_BACKUP_LOG_SCRIPT' ] ) #NEWLINE# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# traceback = full_stack ( ) #NEWLINE# workflow_dict [ 'exceptions' ] [ 'error_codes' ] . append ( DBAAS_0014 ) #NEWLINE# workflow_dict [ 'exceptions' ] [ 'traceback' ] . append ( traceback ) #NEWLINE# return False