Fix gnt-instance modify breakage due to hvm_boot_order
authorIustin Pop <iustin@google.com>
Sun, 27 Jan 2008 17:10:39 +0000 (17:10 +0000)
committerIustin Pop <iustin@google.com>
Sun, 27 Jan 2008 17:10:39 +0000 (17:10 +0000)
As reported by hypnoce@gmail.com, 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

scripts/gnt-instance

index bfa0c81..464ead3 100755 (executable)
@@ -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
   else:
     hvm_boot_order = opts.hvm_boot_order