From 50cb2e2a10f6eb319ca584bc7477569c0e790fc6 Mon Sep 17 00:00:00 2001
From: Guido Trotter <ultrotter@google.com>
Date: Fri, 23 Jan 2009 17:02:26 +0000
Subject: [PATCH] Xen and KVM: correct a typo when checking args

A missing 'be' was present in the error string for both xen and kvm,
when the kernel or initrd path was not absolute.

Reviewed-by: imsnah
---
 lib/hypervisor/hv_kvm.py | 4 ++--
 lib/hypervisor/hv_xen.py | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py
index 028e6754c..fce3575cf 100644
--- a/lib/hypervisor/hv_kvm.py
+++ b/lib/hypervisor/hv_kvm.py
@@ -611,11 +611,11 @@ class KVMHypervisor(hv_base.BaseHypervisor):
       raise errors.HypervisorError("Need a kernel for the instance")
 
     if not os.path.isabs(hvparams[constants.HV_KERNEL_PATH]):
-      raise errors.HypervisorError("The kernel path must an absolute path")
+      raise errors.HypervisorError("The kernel path must be an absolute path")
 
     if hvparams[constants.HV_INITRD_PATH]:
       if not os.path.isabs(hvparams[constants.HV_INITRD_PATH]):
-        raise errors.HypervisorError("The initrd path must an absolute path"
+        raise errors.HypervisorError("The initrd path must be an absolute path"
                                      ", if defined")
 
   def ValidateParameters(self, hvparams):
diff --git a/lib/hypervisor/hv_xen.py b/lib/hypervisor/hv_xen.py
index 42ce709f3..46a1359fe 100644
--- a/lib/hypervisor/hv_xen.py
+++ b/lib/hypervisor/hv_xen.py
@@ -384,11 +384,11 @@ class XenPvmHypervisor(XenHypervisor):
       raise errors.HypervisorError("Need a kernel for the instance")
 
     if not os.path.isabs(hvparams[constants.HV_KERNEL_PATH]):
-      raise errors.HypervisorError("The kernel path must an absolute path")
+      raise errors.HypervisorError("The kernel path must be an absolute path")
 
     if hvparams[constants.HV_INITRD_PATH]:
       if not os.path.isabs(hvparams[constants.HV_INITRD_PATH]):
-        raise errors.HypervisorError("The initrd path must an absolute path"
+        raise errors.HypervisorError("The initrd path must be an absolute path"
                                      ", if defined")
 
   def ValidateParameters(self, hvparams):
-- 
GitLab