From 7315e390c10b84fd546dc7b2c95dd214220f7c3f Mon Sep 17 00:00:00 2001 From: Radek Vykydal Date: Mon, 19 Feb 2024 15:18:03 +0100 Subject: [PATCH] network: do not crash on destroyed device object in GUI Resolves: RHEL-56141 --- pyanaconda/ui/gui/spokes/network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py index 9a2212cef95..b66d3e2f06a 100644 --- a/pyanaconda/ui/gui/spokes/network.py +++ b/pyanaconda/ui/gui/spokes/network.py @@ -946,7 +946,9 @@ def _refresh_parent_vlanid(self, dev_cfg): device = self.client.get_device_by_iface(dev_cfg.device_name) if device: vlanid = device.get_vlan_id() - parent = device.get_parent().get_iface() + parent = device.get_parent() or "" + if parent: + parent = parent.get_iface() else: con = self.client.get_connection_by_uuid(dev_cfg.connection_uuid) if con: