From: pmikus Date: Fri, 13 Oct 2023 06:58:10 +0000 (+0000) Subject: fix(pylint): DUTSetup X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=ed3d8f33e35092d58a5b611af4e148dcce680921 fix(pylint): DUTSetup Signed-off-by: Peter Mikus Change-Id: Ibe13acbd104e780f42e104755db026dcdd478f62 --- 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(