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