From 32de8b3234f512d1555ad569d27ddecff6e18922 Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Fri, 9 Feb 2024 08:32:15 +0100 Subject: https: T5902: fix migration of virtual-host port CLI source node is port and not listen-port. (cherry picked from commit 63d53a17274349fd68defdbf9f7ce16be63fc9b1) --- src/migration-scripts/https/5-to-6 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/migration-scripts') diff --git a/src/migration-scripts/https/5-to-6 b/src/migration-scripts/https/5-to-6 index 0090adccb..72e9e31f7 100755 --- a/src/migration-scripts/https/5-to-6 +++ b/src/migration-scripts/https/5-to-6 @@ -79,7 +79,7 @@ if config.exists(base + ['virtual-host']): tmp = config.return_values(allow_path) allow_client.extend(tmp) - port_path = base + ['virtual-host', virtual_host, 'listen-port'] + port_path = base + ['virtual-host', virtual_host, 'port'] if config.exists(port_path): tmp = config.return_value(port_path) listen_port.append(tmp) @@ -99,8 +99,6 @@ if config.exists(base + ['virtual-host']): for address in listen_address: config.set(base + ['listen-address'], value=address, replace=False) - - try: with open(file_name, 'w') as f: f.write(config.to_string()) -- cgit v1.2.3