Xen and KVM: correct a typo when checking args
authorGuido Trotter <ultrotter@google.com>
Fri, 23 Jan 2009 17:02:26 +0000 (17:02 +0000)
committerGuido Trotter <ultrotter@google.com>
Fri, 23 Jan 2009 17:02:26 +0000 (17:02 +0000)
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
lib/hypervisor/hv_xen.py

index 028e675..fce3575 100644 (file)
@@ -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):
index 42ce709..46a1359 100644 (file)
@@ -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):