Revision a2d32034 lib/hypervisor/__init__.py

b/lib/hypervisor/__init__.py
27 27
from ganeti import constants
28 28
from ganeti import errors
29 29

  
30
from ganeti.hypervisor import FakeHypervisor
31
from ganeti.hypervisor import XenHypervisor
30
from ganeti.hypervisor import hv_fake
31
from ganeti.hypervisor import hv_xen
32 32

  
33 33

  
34 34
def GetHypervisor():
......
40 40
  """
41 41
  ht_kind = ssconf.SimpleStore().GetHypervisorType()
42 42
  if ht_kind == constants.HT_XEN_PVM30:
43
    cls = XenHypervisor.XenPvmHypervisor
43
    cls = hv_xen.XenPvmHypervisor
44 44
  elif ht_kind == constants.HT_XEN_HVM31:
45
    cls = XenHypervisor.XenHvmHypervisor
45
    cls = hv_xen.XenHvmHypervisor
46 46
  elif ht_kind == constants.HT_FAKE:
47
    cls = FakeHypervisor.FakeHypervisor
47
    cls = hv_fake.FakeHypervisor
48 48
  else:
49 49
    raise errors.HypervisorError("Unknown hypervisor type '%s'" % ht_kind)
50 50
  return cls()

Also available in: Unified diff