Revision cd04dfd2 lib/hypervisor/hv_lxc.py
b/lib/hypervisor/hv_lxc.py | ||
---|---|---|
401 | 401 |
def Verify(self): |
402 | 402 |
"""Verify the hypervisor. |
403 | 403 |
|
404 |
For the chroot manager, it just checks the existence of the base dir. |
|
404 |
For the LXC manager, it just checks the existence of the base dir. |
|
405 |
|
|
406 |
@return: Problem description if something is wrong, C{None} otherwise |
|
405 | 407 |
|
406 | 408 |
""" |
407 |
if not os.path.exists(self._ROOT_DIR): |
|
408 |
return "The required directory '%s' does not exist." % self._ROOT_DIR |
|
409 |
if os.path.exists(self._ROOT_DIR): |
|
410 |
return None |
|
411 |
else: |
|
412 |
return "The required directory '%s' does not exist" % self._ROOT_DIR |
|
409 | 413 |
|
410 | 414 |
@classmethod |
411 | 415 |
def PowercycleNode(cls): |
Also available in: Unified diff