mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
7c437f6a6f
commit
466c2bcf9c
@ -484,7 +484,7 @@ class VirtualDisk(VirtualDevice):
|
|||||||
# This case is here for 'xvda'
|
# This case is here for 'xvda'
|
||||||
tgt = tgt[1:]
|
tgt = tgt[1:]
|
||||||
for i, c in enumerate(reversed(tgt[2:])):
|
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
|
return num
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user