From 132cd037c0c0d966525a406dfb621996dc68a9a7 Mon Sep 17 00:00:00 2001 From: eclipse-kura-bot <77626377+eclipse-kura-bot@users.noreply.github.com> Date: Tue, 12 Nov 2024 09:38:30 +0100 Subject: [PATCH] fix(distrib): revert #5522 [backport release-5.6.0] (#5539) fix(distrib): revert #5522 (#5533) Revert "fix(distrib): Updated installer script to write all interface names to snapshot file (#5522)" This reverts commit c2ea2ff2cb793a5761b400c7d62f9fa1fabe1b79. (cherry picked from commit a659d6e281d70c76cf675bbf2e09856fe3b5e115) Co-authored-by: Mattia Dal Ben --- kura/distrib/src/main/resources/common/customize_snapshot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kura/distrib/src/main/resources/common/customize_snapshot.py b/kura/distrib/src/main/resources/common/customize_snapshot.py index 292df0e0c7..22eb56c065 100644 --- a/kura/distrib/src/main/resources/common/customize_snapshot.py +++ b/kura/distrib/src/main/resources/common/customize_snapshot.py @@ -90,12 +90,12 @@ def main(): interfaces_list = "lo" - for i, eth_name in enumerate(eth_names): + for i, eth_name in enumerate(eth_names[:2]): snapshot_content = snapshot_content.replace('ETH_INTERFACE_' + str(i), eth_name) interfaces_list += "," + eth_name logging.info("%s : replaced ETH_INTERFACE_%s with %s", SNAPSHOT_FILENAME, str(i), eth_name) - for i, wlan_name in enumerate(wlan_names): + for i, wlan_name in enumerate(wlan_names[:1]): snapshot_content = snapshot_content.replace('WIFI_INTERFACE_' + str(i), wlan_name) interfaces_list += "," + wlan_name logging.info("%s : replaced WIFI_INTERFACE_%s with %s", SNAPSHOT_FILENAME, str(i), wlan_name)