Revert "fix(jobspec): Delete ipsec nfv density tests"
[csit.git] / resources / libraries / python / DUTSetup.py
index 9fc525c..f9758c5 100644 (file)
@@ -16,7 +16,6 @@
 from time import sleep
 from robot.api import logger
 
-from resources.libraries.python.Constants import Constants
 from resources.libraries.python.ssh import exec_cmd, exec_cmd_no_error
 from resources.libraries.python.topology import NodeType, Topology
 
@@ -35,11 +34,10 @@ class DUTSetup:
         """
         if DUTSetup.running_in_container(node):
             return
-        else:
-            command = (
-                f"journalctl --no-pager _SYSTEMD_INVOCATION_ID=$(systemctl "
-                f"show -p InvocationID --value {service})"
-            )
+        command = (
+            f"journalctl --no-pager _SYSTEMD_INVOCATION_ID=$(systemctl "
+            f"show -p InvocationID --value {service})"
+        )
         message = f"Node {node[u'host']} failed to get logs from unit {service}"
 
         exec_cmd_no_error(
@@ -306,11 +304,11 @@ class DUTSetup:
 
         :param node: DUT node.
         :param pf_pci_addr: Physical Function PCI device address.
-        :param type: Either device or driver.
+        :param path: Either device or driver.
         :param numvfs: Number of VFs to initialize, 0 - removes the VFs.
         :type node: dict
         :type pf_pci_addr: str
-        :type type: str
+        :type path: str
         :type numvfs: int
         :raises RuntimeError: Failed to create VFs on PCI.
         """