#NEWLINE# def undo( self , workflow_dict ) : #NEWLINE# #INDENT# LOG . info ( 'Running undo...' ) #NEWLINE# try : #NEWLINE# #INDENT# command = 'umount /data' #NEWLINE# for host_and_export in workflow_dict [ 'hosts_and_exports' ] : #NEWLINE# #INDENT# host = host_and_export [ 'host' ] #NEWLINE# cs_host_attr = CsHostAttr . objects . get ( host = host ) #NEWLINE# output = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# return_code = exec_remote_command ( server = host . address , username = traceback . vm_user , password = cs_host_attr . vm_password , command = command , output = output ) #NEWLINE# if ( return_code != 0 ) : #NEWLINE# #INDENT# LOG . info ( str ( output ) ) #NEWLINE# #UNINDENT# #UNINDENT# return True #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# traceback = full_stack ( ) #NEWLINE# workflow_dict [ 'exceptions' ] [ 'error_codes' ] . append ( DBAAS_0021 ) #NEWLINE# workflow_dict [ 'exceptions' ] [ 'traceback' ] . append ( traceback ) #NEWLINE# return False