From 2f4031c810a297c8ef81b0dc79242ef584b48662 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Fri, 10 Jun 2022 20:30:29 +0200 Subject: scripts: T4465: node.def generation requires whitespace on multiple use of --- scripts/build-command-templates | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts/build-command-templates') diff --git a/scripts/build-command-templates b/scripts/build-command-templates index 876f5877c..729fc864c 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -192,12 +192,12 @@ def get_properties(p, default=None): # so we get to emulate it comp_exprs = [] for i in lists: - comp_exprs.append("echo \"{0}\"".format(i.text)) + comp_exprs.append(f'echo "{i.text}"') for i in paths: - comp_exprs.append("/bin/cli-shell-api listNodes {0}".format(i.text)) + comp_exprs.append(f'/bin/cli-shell-api listNodes {i.text}') for i in scripts: - comp_exprs.append("sh -c \"{0}\"".format(i.text)) - comp_help = " && ".join(comp_exprs) + comp_exprs.append(f'sh -c "{i.text}"') + comp_help = ' && echo " " && '.join(comp_exprs) props["comp_help"] = comp_help except: props["comp_help"] = [] -- cgit v1.2.3