summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-12-06 10:13:32 +0000
committerViacheslav <v.gletenko@vyos.io>2021-12-06 10:13:32 +0000
commit001cc6655f1864a46b573dae13c8f33bbf224239 (patch)
treee0cd085aed0377a012f2e60d0545b72a6d936092 /src/validators
parentb6fbe6d3a5e8de4f90aa9fba61ca7491f9959ed0 (diff)
downloadvyos-1x-001cc6655f1864a46b573dae13c8f33bbf224239.tar.gz
vyos-1x-001cc6655f1864a46b573dae13c8f33bbf224239.zip
validators: T4053: Fix exit code for script
Diffstat (limited to 'src/validators')
-rwxr-xr-xsrc/validators/script2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validators/script b/src/validators/script
index 46e8a57b2..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(
+ 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'
)