Re: [virt-manager PATCH] disk: calculate the disk bus properly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Kletzander <mkletzan@xxxxxxxxxx> writes:

> I forgot to amend this change when changing it the last time.
>
> Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
> ---
>  virtinst/devicedisk.py | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py
> index 6e7c6c8..9ebcc11 100644
> --- a/virtinst/devicedisk.py
> +++ b/virtinst/devicedisk.py
> @@ -484,7 +484,7 @@ class VirtualDisk(VirtualDevice):
>              # This case is here for 'xvda'
>              tgt = tgt[1:]
>          for i, c in enumerate(reversed(tgt[2:])):
> -            num += (ord(c) - ord('a') + 1) * (26 ** i)
> +            num += (ord(c) - ord('a')) * (26 ** i)
>          return num

ACK

Giuseppe

_______________________________________________
virt-tools-list mailing list
virt-tools-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/virt-tools-list




[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux