summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ntp
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:41 +0200
commite3f43abab6083610625c2fcc74bb359277f005fb (patch)
treeb2f60249523e074029523e81fcefc22eeaf5fbcb /src/migration-scripts/ntp
parent4903dc924fe79711e47840faecb58030c0ecc98d (diff)
downloadvyos-1x-e3f43abab6083610625c2fcc74bb359277f005fb.tar.gz
vyos-1x-e3f43abab6083610625c2fcc74bb359277f005fb.zip
ntp: T2809: Fix migration script if server not exist
(cherry picked from commit d96336a808e500934fc4fd9423345d0b965d35ac)
Diffstat (limited to 'src/migration-scripts/ntp')
-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: