Revision 5661b908 lib/hypervisor/hv_xen.py
b/lib/hypervisor/hv_xen.py | ||
---|---|---|
43 | 43 |
|
44 | 44 |
""" |
45 | 45 |
|
46 |
@staticmethod
|
|
47 |
def _WriteConfigFile(instance, block_devices, extra_args): |
|
46 |
@classmethod
|
|
47 |
def _WriteConfigFile(cls, instance, block_devices, extra_args):
|
|
48 | 48 |
"""Write the Xen config file for the instance. |
49 | 49 |
|
50 | 50 |
""" |
... | ... | |
441 | 441 |
|
442 | 442 |
iso_path = hvparams[constants.HV_CDROM_IMAGE_PATH] |
443 | 443 |
if iso_path and not os.path.isabs(iso_path): |
444 |
raise errors.HypervisorError("The path to the HVM CDROM image must"
|
|
445 |
" be an absolute path or None, not %s" %
|
|
446 |
iso_path)
|
|
444 |
raise errors.HypervisorError("The path to the HVM CDROM image must" |
|
445 |
" be an absolute path or None, not %s" % |
|
446 |
iso_path) |
|
447 | 447 |
|
448 | 448 |
def ValidateParameters(self, hvparams): |
449 | 449 |
"""Check the given parameters for validity. |
Also available in: Unified diff