Revision cd04dfd2 lib/hypervisor/hv_chroot.py
b/lib/hypervisor/hv_chroot.py | ||
---|---|---|
281 | 281 |
|
282 | 282 |
For the chroot manager, it just checks the existence of the base dir. |
283 | 283 |
|
284 |
@return: Problem description if something is wrong, C{None} otherwise |
|
285 |
|
|
284 | 286 |
""" |
285 |
if not os.path.exists(self._ROOT_DIR): |
|
286 |
return "The required directory '%s' does not exist." % self._ROOT_DIR |
|
287 |
if os.path.exists(self._ROOT_DIR): |
|
288 |
return None |
|
289 |
else: |
|
290 |
return "The required directory '%s' does not exist" % self._ROOT_DIR |
|
287 | 291 |
|
288 | 292 |
@classmethod |
289 | 293 |
def PowercycleNode(cls): |
Also available in: Unified diff