Revision 29921401 lib/hypervisor/hv_kvm.py
b/lib/hypervisor/hv_kvm.py | ||
---|---|---|
56 | 56 |
constants.HV_ACPI: hv_base.NO_CHECK, |
57 | 57 |
constants.HV_SERIAL_CONSOLE: hv_base.NO_CHECK, |
58 | 58 |
constants.HV_VNC_BIND_ADDRESS: \ |
59 |
(False, lambda x: (utils.IsValidIP(x) or utils.IsAbsNormPath(x)),
|
|
59 |
(False, lambda x: (utils.IsValidIP(x) or utils.IsNormAbsPath(x)),
|
|
60 | 60 |
"the VNC bind address must be either a valid IP address or an absolute" |
61 | 61 |
" pathname", None, None), |
62 | 62 |
constants.HV_VNC_TLS: hv_base.NO_CHECK, |
... | ... | |
86 | 86 |
hv_base.BaseHypervisor.__init__(self) |
87 | 87 |
# Let's make sure the directories we need exist, even if the RUN_DIR lives |
88 | 88 |
# in a tmpfs filesystem or has been otherwise wiped out. |
89 |
dirs = [(dir, constants.RUN_DIRS_MODE) for dir in self._DIRS]
|
|
89 |
dirs = [(dname, constants.RUN_DIRS_MODE) for dname in self._DIRS]
|
|
90 | 90 |
utils.EnsureDirs(dirs) |
91 | 91 |
|
92 | 92 |
def _InstancePidAlive(self, instance_name): |
Also available in: Unified diff