summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-05-07 23:00:46 +0300
committerDaniil Baturin <daniil@vyos.io>2020-05-07 23:00:46 +0300
commit29dee3abb55d0f0c6b91b311f30521b45d7e46b6 (patch)
tree04c0f50ecaadc39e45f92113285162c53b5ad11b /scripts
parente3064f763f1976993a616e141dd9ce39165f6fe3 (diff)
downloadvyos-1x-29dee3abb55d0f0c6b91b311f30521b45d7e46b6.tar.gz
vyos-1x-29dee3abb55d0f0c6b91b311f30521b45d7e46b6.zip
T2431: use native versions of validate-value and numeric validator.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-command-templates2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/build-command-templates b/scripts/build-command-templates
index c6534a6d8..767517b29 100755
--- a/scripts/build-command-templates
+++ b/scripts/build-command-templates
@@ -149,7 +149,7 @@ def get_properties(p):
regex_args = " ".join(map(lambda s: "--regex \\\'{0}\\\'".format(s), regexes))
validator_args = " ".join(map(lambda s: "--exec \\\"{0}\\\"".format(s), validators))
- validator_script = '${vyos_libexec_dir}/validate-value.py'
+ validator_script = '${vyos_libexec_dir}/validate-value'
validator_string = "exec \"{0} {1} {2} --value \\\'$VAR(@)\\\'\"; \"{3}\"".format(validator_script, regex_args, validator_args, error_msg)
props["constraint"] = validator_string