From 5661b908d35b9091dabd6d3e980d49ef4c32cd6e Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 14 Dec 2008 12:04:54 +0000 Subject: [PATCH] cleanup: xen hypervisor Wrong indentation and uniformize one method signature. Reviewed-by: amishchenko --- lib/hypervisor/hv_xen.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py index 96a800f..e03bc53 100644 --- a/lib/hypervisor/hv_xen.py +++ b/lib/hypervisor/hv_xen.py @@ -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. -- 1.7.10.4