[PATCH] Fix up a statement that's not assigned to anything.
Brian C. Lane
bcl at redhat.com
Wed Sep 9 00:17:49 UTC 2015
On Tue, Sep 08, 2015 at 09:40:47AM -0400, Chris Lumens wrote:
> ---
> pyanaconda/ui/gui/spokes/network.py | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index 92655cb..c5da8d4 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -666,7 +666,8 @@ class NetworkControlBox(GObject.GObject):
> return None
> dev_cfg = model[itr][DEVICES_COLUMN_OBJECT]
> model.remove(itr)
> - dev_cfg.con and dev_cfg.con.delete()
> + if dev_cfg.con:
> + dev_cfg.con.delete()
>
> def add_device(self, ty):
> log.info("network: adding device of type %s", ty)
> --
> 2.4.3
Ack.
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
More information about the anaconda-patches
mailing list