summaryrefslogtreecommitdiff
path: root/src/validators/script
diff options
context:
space:
mode:
authorChristian Poessinger <christian.poessinger@rohde-schwarz.com>2021-12-06 17:40:51 +0100
committerGitHub <noreply@github.com>2021-12-06 17:40:51 +0100
commitbd7832666a5b532572280bec1e36d6b4769c75b5 (patch)
tree50bc188cccfecafb4bb7f6787009a4a2f5137cb7 /src/validators/script
parent3e027ddb1f4dfc8f713ebff4553bc97fc9a4ae62 (diff)
parent001cc6655f1864a46b573dae13c8f33bbf224239 (diff)
downloadvyos-1x-bd7832666a5b532572280bec1e36d6b4769c75b5.tar.gz
vyos-1x-bd7832666a5b532572280bec1e36d6b4769c75b5.zip
Merge pull request #1097 from sever-sever/T4052
validators: T4052: Fix for warn message in the validator script
Diffstat (limited to 'src/validators/script')
-rwxr-xr-xsrc/validators/script4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validators/script b/src/validators/script
index 1d8a27e5c..4ffdeb2a0 100755
--- a/src/validators/script
+++ b/src/validators/script
@@ -36,7 +36,7 @@ if __name__ == '__main__':
# File outside the config dir is just a warning
if not vyos.util.file_is_persistent(script):
- sys.exit(
- f'Warning: file {path} is outside the / config directory\n'
+ sys.exit(0)(
+ f'Warning: file {script} is outside the "/config" directory\n'
'It will not be automatically migrated to a new image on system update'
)