Commit 5661b908 authored by Iustin Pop's avatar Iustin Pop
Browse files

cleanup: xen hypervisor

Wrong indentation and uniformize one method signature.

Reviewed-by: amishchenko
parent 08137f9e
......@@ -43,8 +43,8 @@ class XenHypervisor(hv_base.BaseHypervisor):
"""
@staticmethod
def _WriteConfigFile(instance, block_devices, extra_args):
@classmethod
def _WriteConfigFile(cls, instance, block_devices, extra_args):
"""Write the Xen config file for the instance.
"""
......@@ -441,9 +441,9 @@ class XenHvmHypervisor(XenHypervisor):
iso_path = hvparams[constants.HV_CDROM_IMAGE_PATH]
if iso_path and not os.path.isabs(iso_path):
raise errors.HypervisorError("The path to the HVM CDROM image must"
" be an absolute path or None, not %s" %
iso_path)
raise errors.HypervisorError("The path to the HVM CDROM image must"
" be an absolute path or None, not %s" %
iso_path)
def ValidateParameters(self, hvparams):
"""Check the given parameters for validity.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment