diff --git a/sushy_tools/emulator/resources/systems/libvirtdriver.py b/sushy_tools/emulator/resources/systems/libvirtdriver.py index 8a0369b1..0d800098 100644 --- a/sushy_tools/emulator/resources/systems/libvirtdriver.py +++ b/sushy_tools/emulator/resources/systems/libvirtdriver.py @@ -951,7 +951,7 @@ class LibvirtDriver(AbstractSystemsDriver): elif lv_device == 'floppy': tgt_dev, tgt_bus = ('fda', 'fdc') else: - tgt_dev, tgt_bus = ('sdc', controller_type) + tgt_dev, tgt_bus = ('sdx', controller_type) # Enumerate existing disks to find a free unit on the bus diff --git a/sushy_tools/tests/unit/emulator/resources/systems/test_libvirt.py b/sushy_tools/tests/unit/emulator/resources/systems/test_libvirt.py index 95d44cd8..e89386a2 100644 --- a/sushy_tools/tests/unit/emulator/resources/systems/test_libvirt.py +++ b/sushy_tools/tests/unit/emulator/resources/systems/test_libvirt.py @@ -602,7 +602,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): volume_mock.upload.assert_called_once_with(mock.ANY, 0, mock.ANY) expected_disk = ('' - '' + '' '
') @@ -610,7 +610,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): # preserves the attribute order specified by the user. if sys.version_info[1] >= 8: expected_disk = ('' - '' + '' '
') self.assertEqual(1, conn_mock.defineXML.call_count) @@ -655,7 +655,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): volume_mock.upload.assert_called_once_with(mock.ANY, 0, mock.ANY) expected_disk = ('' - '' + '' '
') @@ -663,7 +663,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): # preserves the attribute order specified by the user. if sys.version_info[1] >= 8: expected_disk = ('' - '' + '' '
') self.assertEqual(1, conn_mock.defineXML.call_count) @@ -708,7 +708,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): volume_mock.upload.assert_called_once_with(mock.ANY, 0, mock.ANY) expected_disk = ('' - '' + '' '
') @@ -716,7 +716,7 @@ class LibvirtDriverTestCase(base.BaseTestCase): # preserves the attribute order specified by the user. if sys.version_info[1] >= 8: expected_disk = ('' - '' + '' '
')