aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/DUTSetup.py
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2023-10-13 06:58:10 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2023-10-13 07:05:53 +0000
commited3d8f33e35092d58a5b611af4e148dcce680921 (patch)
tree48437ef489ca6a671717bac1814da853e524690c /resources/libraries/python/DUTSetup.py
parent64921d9ec4ebc5f32ab1e8f8b4498f27ee72fdb2 (diff)
fix(pylint): DUTSetup
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch> Change-Id: Ibe13acbd104e780f42e104755db026dcdd478f62
Diffstat (limited to 'resources/libraries/python/DUTSetup.py')
-rw-r--r--resources/libraries/python/DUTSetup.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/resources/libraries/python/DUTSetup.py b/resources/libraries/python/DUTSetup.py
index 66ae2294a3..f9758c5f9f 100644
--- a/resources/libraries/python/DUTSetup.py
+++ b/resources/libraries/python/DUTSetup.py
@@ -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(