summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-05-31 14:51:55 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-05-31 15:50:26 -0500
commit362ece3add2771bf412131a306fd0c0cfa04c16c (patch)
treee2a6dcf292c5fae11b062507042a9f24bc182850
parent4dbbacc5ff721b6e704e937f5adc23c5b0c1af9b (diff)
downloadvyos-1x-362ece3add2771bf412131a306fd0c0cfa04c16c.tar.gz
vyos-1x-362ece3add2771bf412131a306fd0c0cfa04c16c.zip
migration: T5251: fix incorrect logic in calling configtree.delete
The node was already deleted in the 'if path exists' branch; attempt to delete in 'else' branch will now raise an error.
-rwxr-xr-xsrc/migration-scripts/system/18-to-193
1 files changed, 0 insertions, 3 deletions
diff --git a/src/migration-scripts/system/18-to-19 b/src/migration-scripts/system/18-to-19
index fd0e15d42..38479d222 100755
--- a/src/migration-scripts/system/18-to-19
+++ b/src/migration-scripts/system/18-to-19
@@ -92,9 +92,6 @@ else:
for intf in dhcp_interfaces:
config.set(base + ['name-servers-dhcp'], value=intf, replace=False)
- # delete old node
- config.delete(base + ['disable-dhcp-nameservers'])
-
try:
with open(file_name, 'w') as f:
f.write(config.to_string())