* On 2012-08-15 14:25:20 +0200, Gerd Hoffmann ([email protected]) wrote:
> _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]>
Ack.

It looks that I need to update the _add_option() func, making it
support more type. :p

> ---
>  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

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to