From 842144ccabb9a739421934870da47fbb131f62bb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 1 Jun 2026 12:55:11 -0400 Subject: [PATCH] Fix iterating the netplan configuration --- confluent_osdeploy/common/profile/scripts/confignet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confluent_osdeploy/common/profile/scripts/confignet b/confluent_osdeploy/common/profile/scripts/confignet index ac0276bb..de29fe6e 100644 --- a/confluent_osdeploy/common/profile/scripts/confignet +++ b/confluent_osdeploy/common/profile/scripts/confignet @@ -247,7 +247,7 @@ class NetplanManager(object): if prune_from_cloudinit: with open('/etc/netplan/50-cloud-init.yaml', 'r') as cloudinit: cloudinfo = yaml.safe_load(cloudinit) - for clouddev in cloudinfo.get('network', {}).get('ethernets', {}): + for clouddev in list(cloudinfo.get('network', {}).get('ethernets', {})): if clouddev in prune_from_cloudinit: del cloudinfo['network']['ethernets'][clouddev] if not cloudinfo['network'].get('ethernets', {}):