Skip to content

Commit

Permalink
SNC-20976 "except/find/grep/save" option not required for "show tech-…
Browse files Browse the repository at this point in the history
…support" in KLISH (#252)
  • Loading branch information
rajib-dutta1 authored and GitHub Enterprise committed Nov 17, 2022
1 parent 049c16c commit 667d34a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CLI/clitree/scripts/klish_insert_pipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def addpipe(command):
splitstr = command.get("name").split()
action = command.find(ACTION_XPATH_EXPR).get("builtin")
if splitstr[0] == "show" or splitstr[0] == "get":
if action in actionlst:
if len(splitstr) >= 2 and splitstr[1] == 'tech-support':
return command
elif action in actionlst:
etree.SubElement(
command, "{" + XI_NS_HREF + "}include", href=PIPE_WITHOUT_DISPLAY_XML
)
Expand Down

0 comments on commit 667d34a

Please sign in to comment.