Check that we have a valid export list
[ganeti-local] / scripts / gnt-instance
index d89cce9..464ead3 100755 (executable)
@@ -639,6 +639,7 @@ def ShowInstanceConfig(opts, args):
     else:
       initrd = instance["initrd_path"]
     buf.write("       initrd: %s\n" % initrd)
+    buf.write("  HVM boot order: %s\n" % instance["hvm_boot_order"])
     buf.write("  Hardware:\n")
     buf.write("    - VCPUs: %d\n" % instance["vcpus"])
     buf.write("    - memory: %dMiB\n" % instance["memory"])
@@ -676,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