[PATCH rhel7-branch] network: don't crash on virtual devices turned off (#1080640)

Vratislav Podzimek vpodzime at redhat.com
Fri Mar 28 09:59:08 UTC 2014


On Fri, 2014-03-28 at 09:59 +0100, Radek Vykydal wrote:
> Resolves: rhbz#1080640
> ---
>  pyanaconda/network.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index f54c9ec..63f2ef7 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -545,6 +545,9 @@ def add_connection_for_ksdata(networkdata, devname):
>  
>  def ksdata_from_ifcfg(devname, uuid=None):
>  
> +    if devname not in nm.nm_devices():
> +        return None
> +
>      if nm.nm_device_is_slave(devname):
>          return None
>      if nm.nm_device_type_is_wifi(devname):
ACK.

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic



More information about the anaconda-patches mailing list