From: Ondrej Lichtner <olichtne(a)redhat.com>
To prepare for tracking multiple types of classes dynamically received
from the controller, the _dynamic_classes dictionary should track them
with their full path names (including module name) to prevent conflicts.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Slave/NetTestSlave.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lnst/Slave/NetTestSlave.py b/lnst/Slave/NetTestSlave.py
index 75c194b..efacd58 100644
--- a/lnst/Slave/NetTestSlave.py
+++ b/lnst/Slave/NetTestSlave.py
@@ -152,7 +152,7 @@ class SlaveMethods:
module = self._dynamic_modules[module_name]
cls = getattr(module, cls_name)
- self._dynamic_classes[cls_name] = cls
+ self._dynamic_classes["{}.{}".format(module_name, cls_name)] = cls
setattr(Devices, cls_name, cls)
--
2.19.0