def unmount_share(mount_path, export_path):
 try:
  utils.execute('umount', mount_path, run_as_root=True, attempts=3, delay_on_retry=True)
 except processutils.ProcessExecutionError as exc:
  if ('target is busy' in six.text_type(exc)):
   LOG.debug('The share %s is still in use.', export_path)
  else:
   LOG.exception(_LE("Couldn't unmount the share %s"), export_path)

def unmount_share ( mount_path , export_path ) : try : utils . execute ( 'umount' , mount_path , run_as_root = True , attempts = 3 , delay_on_retry = True ) except processutils . ProcessExecutionError as exc : if ( 'target is busy' in six . text_type ( exc ) ) : LOG . debug ( 'The share %s is still in use.' , export_path ) else : LOG . exception ( _LE ( "Couldn't unmount the share %s" ) , export_path )
unmount a remote share .