summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2021-05-13 20:53:27 +0000
committerChristian Poessinger <christian@poessinger.com>2021-05-14 21:09:14 +0200
commitd96336a808e500934fc4fd9423345d0b965d35ac (patch)
treec17d9b1b8af48873ba4ceb877dbe400b79bc904d /src
parent37f3ead353625b53cfa8953196a9c32b42a10e7f (diff)
downloadvyos-1x-d96336a808e500934fc4fd9423345d0b965d35ac.tar.gz
vyos-1x-d96336a808e500934fc4fd9423345d0b965d35ac.zip
ntp: T2809: Fix migration script if server not exist
Diffstat (limited to 'src')
-rwxr-xr-xsrc/migration-scripts/ntp/0-to-12
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/ntp/0-to-1 b/src/migration-scripts/ntp/0-to-1
index 9c66f3109..294964580 100755
--- a/src/migration-scripts/ntp/0-to-1
+++ b/src/migration-scripts/ntp/0-to-1
@@ -17,7 +17,7 @@ with open(file_name, 'r') as f:
config = ConfigTree(config_file)
-if not config.exists(['system', 'ntp']):
+if not config.exists(['system', 'ntp', 'server']):
# Nothing to do
sys.exit(0)
else: