Revision 9afb67fe lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
73 | 73 |
hv_base.BaseHypervisor.__init__(self) |
74 | 74 |
# Let's make sure the directories we need exist, even if the RUN_DIR lives |
75 | 75 |
# in a tmpfs filesystem or has been otherwise wiped out. |
76 |
for mydir in self._DIRS: |
|
77 |
if not os.path.exists(mydir): |
|
78 |
os.mkdir(mydir) |
|
76 |
dirs = [(dir, constants.RUN_DIRS_MODE) for dir in self._DIRS] |
|
77 |
utils.EnsureDirs(dirs) |
|
79 | 78 |
|
80 | 79 |
def _InstancePidAlive(self, instance_name): |
81 | 80 |
"""Returns the instance pid and pidfile |
Also available in: Unified diff