Browse Source

Update getting of host network devices according to fuel-devops v3

Change-Id: I36c2d62e47e1977d0115695d2cc5a0431e48e2b5
Closes-Bug: 1671371
Sergey Novikov 2 years ago
parent
commit
094cbbaad5
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      fuelweb_test/models/environment.py

+ 3
- 4
fuelweb_test/models/environment.py View File

@@ -211,10 +211,9 @@ class EnvironmentModel(six.with_metaclass(SingletonMeta, object)):
211 211
 
212 212
     @staticmethod
213 213
     def get_target_devs(devops_nodes):
214
-        return [
215
-            interface.target_dev for interface in [
216
-                val for var in map(lambda node: node.interfaces, devops_nodes)
217
-                for val in var]]
214
+        return [devops_node.get_interface_target_dev(interface.mac_address)
215
+                for devops_node in devops_nodes
216
+                for interface in devops_node.interfaces]
218 217
 
219 218
     @property
220 219
     def d_env(self):

Loading…
Cancel
Save