Commit 8a74a9b9 authored by Guido Trotter's avatar Guido Trotter
Browse files

KVMHypervisor add two missing 'constants.'

Some calls to the HV parameters were missing them.

Reviewed-by: imsnah
parent 47387b1e
......@@ -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])
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