From: Ondrej Lichtner <olichtne(a)redhat.com>
Since the InterfaceManager.get_device class calls rescan_devices
internally, there's no need to call it externally as well.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/NetTestSlave.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index 363f053..27f5cce 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -241,7 +241,6 @@ class SlaveMethods:
return setattr(dev, name, value)
def get_devices(self):
- self._if_manager.rescan_devices()
devices = self._if_manager.get_devices()
result = {}
for device in devices:
@@ -249,7 +248,6 @@ class SlaveMethods:
return result
def get_device(self, ifindex):
- self._if_manager.rescan_devices()
device = self._if_manager.get_device(ifindex)
if device:
return device._get_if_data()
--
2.23.0