diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-06-10 20:30:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2022-06-10 20:30:40 +0200 |
commit | 2f4031c810a297c8ef81b0dc79242ef584b48662 (patch) | |
tree | 89916f55577098eb9ea7b05d8c891783eb182c1e /scripts | |
parent | c3275306ce56bd803c6f833d85c9212ea8db0dfe (diff) | |
download | vyos-1x-2f4031c810a297c8ef81b0dc79242ef584b48662.tar.gz vyos-1x-2f4031c810a297c8ef81b0dc79242ef584b48662.zip |
scripts: T4465: node.def generation requires whitespace on multiple use of <path>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build-command-templates | 8 |
1 files changed, 4 insertions, 4 deletions
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"] = [] |