summaryrefslogtreecommitdiff
path: root/src/validators
diff options
context:
space:
mode:
authorViacheslav <v.gletenko@vyos.io>2021-12-06 10:13:32 +0000
committerChristian Poessinger <christian@poessinger.com>2021-12-06 18:45:10 +0100
commit80fc0319b2cd2b5977e6691991c25051d1d08de5 (patch)
tree131c7db881c3c9e541d4f7f75ce75c2398d85643 /src/validators
parent6daac5a542fb0d42e5009f4a4e4540dfbb9b0015 (diff)
downloadvyos-1x-80fc0319b2cd2b5977e6691991c25051d1d08de5.tar.gz
vyos-1x-80fc0319b2cd2b5977e6691991c25051d1d08de5.zip
validators: T4053: Fix exit code for script
(cherry picked from commit 001cc6655f1864a46b573dae13c8f33bbf224239)
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'
)