The fake devices listed on MockModel has device type as scsi_host which
is similar to fc_host but because of the filter none FC device was
listed.
Fix it.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
src/kimchi/mockmodel.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/kimchi/mockmodel.py b/src/kimchi/mockmodel.py
index 0c8186c..413ac5d 100644
--- a/src/kimchi/mockmodel.py
+++ b/src/kimchi/mockmodel.py
@@ -316,6 +316,10 @@ class MockModel(Model):
_passthrough_affected_by=None):
if _cap is None:
return self._mock_devices.devices.keys()
+
+ if _cap == 'fc_host':
+ _cap = 'scsi_host'
+
return [dev['name'] for dev in self._mock_devices.devices.values()
if dev['device_type'] == _cap]
--
2.1.0