From 8a74a9b9ad72b2fb405144590c2d8b140cb1d40d Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 2 Dec 2008 10:54:37 +0000 Subject: [PATCH] KVMHypervisor add two missing 'constants.' Some calls to the HV parameters were missing them. Reviewed-by: imsnah --- lib/hypervisor/hv_kvm.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/hypervisor/hv_kvm.py b/lib/hypervisor/hv_kvm.py index c12255fa8..eea3d0ef3 100644 --- a/lib/hypervisor/hv_kvm.py +++ b/lib/hypervisor/hv_kvm.py @@ -218,8 +218,9 @@ class KVMHypervisor(hv_base.BaseHypervisor): drive_val = 'file=%s,format=raw%s%s' % (rldev.dev_path, if_val, boot_val) kvm_cmd.extend(['-drive', drive_val]) - kvm_cmd.extend(['-kernel', instance.hvparams[HV_KERNEL_PATH]]) - initrd_path = instance.hvparams[HV_INITRD_PATH] + kvm_cmd.extend(['-kernel', instance.hvparams[constants.HV_KERNEL_PATH]]) + + initrd_path = instance.hvparams[constants.HV_INITRD_PATH] if initrd_path: kvm_cmd.extend(['-initrd', initrd_path]) -- GitLab