Revision 98c98ab9 lib/hypervisor/hv_fake.py

b/lib/hypervisor/hv_fake.py
46 46

  
47 47
  def __init__(self):
48 48
    hv_base.BaseHypervisor.__init__(self)
49
    if not os.path.exists(self._ROOT_DIR):
50
      os.mkdir(self._ROOT_DIR)
49
    utils.EnsureDirs([(self._ROOT_DIR, constants.RUN_DIRS_MODE)])
51 50

  
52 51
  def ListInstances(self):
53 52
    """Get the list of running instances.

Also available in: Unified diff