Revision ba55d062 lib/backend.py

b/lib/backend.py
1780 1780
    os.mkdir(constants.LOG_OS_DIR, 0750)
1781 1781
  real_disk = _RecursiveFindBD(disk)
1782 1782
  if real_disk is None:
1783
    raise errors.BlockDeviceError("Block device '%s' is not set up" %
1784
                                  str(disk))
1783
    _Fail("Block device '%s' is not set up", disk)
1784

  
1785 1785
  real_disk.Open()
1786 1786

  
1787 1787
  export_env['EXPORT_DEVICE'] = real_disk.dev_path
......
1810 1810
  result = utils.RunCmd(command, env=export_env)
1811 1811

  
1812 1812
  if result.failed:
1813
    logging.error("os snapshot export command '%s' returned error: %s"
1814
                  " output: %s", command, result.fail_reason, result.output)
1815
    return False
1813
    _Fail("OS snapshot export command '%s' returned error: %s"
1814
          " output: %s", command, result.fail_reason, result.output)
1816 1815

  
1817
  return True
1816
  return (True, None)
1818 1817

  
1819 1818

  
1820 1819
def FinalizeExport(instance, snap_disks):

Also available in: Unified diff