[virt-tools-list] [virt-manager PATCH] disk: calculate the disk bus properly
Martin Kletzander
mkletzan at redhat.com
Wed Feb 19 12:56:37 UTC 2014
On Wed, Feb 19, 2014 at 10:37:44AM +0100, Giuseppe Scrivano wrote:
> Martin Kletzander <mkletzan at redhat.com> writes:
>
> > I forgot to amend this change when changing it the last time.
> >
> > Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
> > ---
> > 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
Thanks, pushed,
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20140219/135a7c55/attachment.sig>
More information about the virt-tools-list
mailing list