diff options
author | sever-sever <v.gletenko@vyos.io> | 2021-05-13 20:53:27 +0000 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-05-14 21:09:41 +0200 |
commit | e3f43abab6083610625c2fcc74bb359277f005fb (patch) | |
tree | b2f60249523e074029523e81fcefc22eeaf5fbcb | |
parent | 4903dc924fe79711e47840faecb58030c0ecc98d (diff) | |
download | vyos-1x-e3f43abab6083610625c2fcc74bb359277f005fb.tar.gz vyos-1x-e3f43abab6083610625c2fcc74bb359277f005fb.zip |
ntp: T2809: Fix migration script if server not exist
(cherry picked from commit d96336a808e500934fc4fd9423345d0b965d35ac)
-rwxr-xr-x | src/migration-scripts/ntp/0-to-1 | 2 |
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: |