Commit 40cece88 authored by Iustin Pop's avatar Iustin Pop
Browse files

Fix gnt-instance modify breakage due to hvm_boot_order

As reported by, this is missing a check on None. As we don't
care about uppercase, we keep the check simple by removing the lower() call.

Reviewed-by: ultrotter
parent 70a35b6f
......@@ -677,7 +677,7 @@ def SetInstanceParms(opts, args):
kernel_path = _TransformPath(opts.kernel_path)
initrd_path = _TransformPath(opts.initrd_path)
if opts.hvm_boot_order.lower() == 'default':
if opts.hvm_boot_order == 'default':
hvm_boot_order = constants.VALUE_DEFAULT
hvm_boot_order = opts.hvm_boot_order
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