diff options
| author | John Estabrook <jestabro@vyos.io> | 2026-03-11 11:42:29 -0500 |
|---|---|---|
| committer | John Estabrook <jestabro@vyos.io> | 2026-03-11 11:49:00 -0500 |
| commit | fb080c406430f6167f654fee6ca2703d8805f01f (patch) | |
| tree | 6fd3f3a6c1d38fce8d560d819ba032891ede6489 /scripts/build-command-templates | |
| parent | 5ff3d2da99e376cf65d0f26706c86f5f975c93b5 (diff) | |
| download | vyos-1x-fb080c406430f6167f654fee6ca2703d8805f01f.tar.gz vyos-1x-fb080c406430f6167f654fee6ca2703d8805f01f.zip | |
T8269: pass option 'silent' to validate_value if constraintSilenceOutput
Diffstat (limited to 'scripts/build-command-templates')
| -rwxr-xr-x | scripts/build-command-templates | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates index 5d4d27e8c..9e5576e6d 100755 --- a/scripts/build-command-templates +++ b/scripts/build-command-templates @@ -177,9 +177,11 @@ def get_properties(p, default=None): for vcg in vcge: group_validator_string = group_validator_string + " --grp " + collect_validators(vcg) + silent = " --silent" if p.findall("constraintSilenceOutput") else "" + if vce is not None or len(vcge): validator_script = '${vyos_libexec_dir}/validate-value' - validator_string = "exec \"{0} {1} {2} --value \\\'$VAR(@)\\\'\"; \"{3}\"".format(validator_script, distinct_validator_string, group_validator_string, error_msg) + validator_string = "exec \"{0} {1} {2} --value \\\'$VAR(@)\\\'{3}\"; \"{4}\"".format(validator_script, distinct_validator_string, group_validator_string, silent, error_msg) props["constraint"] = validator_string |
