_add_option() expects the value being a string or bool, passing in a number doesn't work. So make bootindex a string ...
Signed-off-by: Gerd Hoffmann <[email protected]> --- client/virt/kvm_vm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/virt/kvm_vm.py b/client/virt/kvm_vm.py index 5f95180..bb6bf29 100644 --- a/client/virt/kvm_vm.py +++ b/client/virt/kvm_vm.py @@ -470,7 +470,7 @@ class VM(virt_vm.BaseVM): dev = "" if self.params.get("use_bootindex") in ['yes', 'on', True]: if boot in ['yes', 'on', True]: - bootindex = 1 + bootindex = "1" boot = "unused" if format == "ahci": name = "ahci%s" % index -- 1.7.1 _______________________________________________ Autotest-kernel mailing list [email protected] https://www.redhat.com/mailman/listinfo/autotest-kernel
