#NEWLINE# def destroy_vbd( session , vbd_ref ) : #NEWLINE# #INDENT# 'Destroy VBD from host database.' #NEWLINE# try : #NEWLINE# #INDENT# session . call_xenapi ( 'VBD.destroy' , session ) #NEWLINE# #UNINDENT# except session . XenAPI . Failure : #NEWLINE# #INDENT# LOG . exception ( _LE ( 'Unable to destroy VBD' ) ) #NEWLINE# raise exception . StorageError ( reason = ( _ ( 'Unable to destroy VBD %s' ) % vbd_ref ) )