disk: calculate the disk bus properly

I forgot to amend this change when changing it the last time.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Martin Kletzander 2014-02-19 10:12:46 +01:00
parent 7c437f6a6f
commit 466c2bcf9c

View File

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