summaryrefslogtreecommitdiff
path: root/src/migration-scripts/ntp/1-to-2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-01-15 13:29:43 +0100
committerChristian Breunig <christian@breunig.cc>2023-01-15 13:29:43 +0100
commitc9a92b01fab00d656ce3be5702634e76bcab6a23 (patch)
tree924afc9481f297288b4050a0fb23b8100ba1d2d4 /src/migration-scripts/ntp/1-to-2
parent0387c14c42dd4958d2296ce2e274f0d8a716f3ad (diff)
downloadvyos-1x-c9a92b01fab00d656ce3be5702634e76bcab6a23.tar.gz
vyos-1x-c9a92b01fab00d656ce3be5702634e76bcab6a23.zip
ntp: T3008: TypeError bugfix when calling rename()
Diffstat (limited to 'src/migration-scripts/ntp/1-to-2')
-rwxr-xr-xsrc/migration-scripts/ntp/1-to-22
1 files changed, 1 insertions, 1 deletions
diff --git a/src/migration-scripts/ntp/1-to-2 b/src/migration-scripts/ntp/1-to-2
index 1faf0b0e6..4a701e7e5 100755
--- a/src/migration-scripts/ntp/1-to-2
+++ b/src/migration-scripts/ntp/1-to-2
@@ -49,7 +49,7 @@ for server in config.list_nodes(new_base_path + ['server']):
# Rename "allow-clients" -> "allow-client"
if config.exists(new_base_path + ['allow-clients']):
- config.rename(new_base_path + ['allow-client'])
+ config.rename(new_base_path + ['allow-clients'], 'allow-client')
# By default VyOS 1.3 allowed NTP queries for all networks - in chrony we
# explicitly disable this behavior and clients need to be specified using the