[PATCH rhel7-branch] network: don't traceback on invalid team options (#1114282)
Martin Kolman
mkolman at redhat.com
Tue Sep 2 11:05:06 UTC 2014
On Tue, 2014-09-02 at 09:08 +0200, Radek Vykydal wrote:
> Resolves: rhbz#1114282
>
> Log error message.
> In the case teamd dies and team device is not created so we
> are getting the UnknownDeviceError in nm.py.
> ---
> pyanaconda/ui/gui/spokes/network.py | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index 9163b6a..5a7a75c 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -657,6 +657,9 @@ class NetworkControlBox(GObject.GObject):
> try:
> con_uuid = nm.nm_device_setting_value(device.get_iface(), "connection", "uuid")
> dev_cfg = self.dev_cfg(uuid=con_uuid)
> + except nm.UnknownDeviceError as e:
> + log.error(e)
> + return
> except nm.SettingsNotFoundError:
> # wireless devices
> dev_cfg = None
Looks good, ACK!
More information about the anaconda-patches
mailing list