aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVratko Polak <vrpolak@cisco.com>2019-07-09 14:52:37 +0200
committerPeter Mikus <pmikus@cisco.com>2020-01-31 15:59:15 +0000
commit7472410f162a8f7b8c13b9be6d794f41ef2431f7 (patch)
tree758754389896f3d385d934cdee69da39008661c4
parent72fa59b1c11aaf884136fece19999fc80c59d45e (diff)
Remove trailing space from CLI command
Change-Id: I49adff478302da036ecfacb675983923dc3f1ce1 Signed-off-by: Vratko Polak <vrpolak@cisco.com>
-rw-r--r--resources/libraries/python/Trace.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/libraries/python/Trace.py b/resources/libraries/python/Trace.py
index 1fb645b36a..9c02286b0f 100644
--- a/resources/libraries/python/Trace.py
+++ b/resources/libraries/python/Trace.py
@@ -29,12 +29,11 @@ class Trace:
:type nodes: dict
:type maximum: int
"""
- maximum = f"max {maximum}" if maximum is not None else f""
-
+ max_opt = f"" if maximum is None else f" max {maximum}"
for node in nodes.values():
if node[u"type"] == NodeType.DUT:
PapiSocketExecutor.run_cli_cmd_on_all_sockets(
- node, f"show trace {maximum}")
+ node, f"show trace{max_opt}")
@staticmethod
def clear_packet_trace_on_all_duts(nodes):