[virt-tools-list] [PATCH] addhardware: Fix typo in _set_disk_controller

Lin Ma lma at suse.com
Fri Nov 24 12:16:59 UTC 2017


Signed-off-by: Lin Ma <lma at suse.com>
---
 virtManager/addhardware.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/virtManager/addhardware.py b/virtManager/addhardware.py
index e563fe6..8f39ee5 100644
--- a/virtManager/addhardware.py
+++ b/virtManager/addhardware.py
@@ -1459,7 +1459,7 @@ class vmmAddHardware(vmmGObjectUI):
             if (d.get_target_prefix() == disk.get_target_prefix() and
                 d.bus == "scsi"):
                 num = virtinst.VirtualDisk.target_to_num(d.target)
-                idx = num // 7
+                idx = num / 7
                 if idx not in occupied:
                     occupied[idx] = []
                 if d.target not in occupied[idx]:
-- 
2.9.2




More information about the virt-tools-list mailing list