From 362ece3add2771bf412131a306fd0c0cfa04c16c Mon Sep 17 00:00:00 2001 From: John Estabrook Date: Wed, 31 May 2023 14:51:55 -0500 Subject: 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. --- src/migration-scripts/system/18-to-19 | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/migration-scripts/system/18-to-19') 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()) -- cgit v1.2.3