From: Qingtang Zhou <[email protected]> Commit 52f94e55 attempts to search the boot option to a given drive if qemu command line supports the syntax, but it turns out it was slightly incorrect. This patch fixes it.
Signed-off-by: Qingtang Zhou <[email protected]> --- client/virt/kvm_vm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index 4589475..871b824 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -550,7 +550,7 @@ class VM(virt_vm.BaseVM): cmd += _add_option("werror", werror) cmd += _add_option("serial", serial) cmd += _add_option("snapshot", snapshot, bool) - if has_option(help, "boot=on\|off"): + if re.search("boot=on\|off", help, re.MULTILINE): cmd += _add_option("boot", boot, bool) cmd += _add_option("id", name) cmd += _add_option("readonly", readonly, bool) -- 1.7.11.4 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
