Skip to content

Commit

Permalink
network: do not crash on destroyed device object in GUI
Browse files Browse the repository at this point in the history
Resolves: RHEL-56141
  • Loading branch information
rvykydal committed Oct 21, 2024
1 parent 3b125ca commit 7315e39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyanaconda/ui/gui/spokes/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7315e39

Please sign in to comment.