From 466c2bcf9cb07f16690cb41684d67d0265d2d47e Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Wed, 19 Feb 2014 10:12:46 +0100 Subject: [PATCH] disk: calculate the disk bus properly I forgot to amend this change when changing it the last time. Signed-off-by: Martin Kletzander --- virtinst/devicedisk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/devicedisk.py b/virtinst/devicedisk.py index 6e7c6c845..9ebcc1176 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