[master] handle case of no ifcfg and no hostname (#1002737)

Vratislav Podzimek vpodzime at redhat.com
Fri Sep 13 07:11:12 UTC 2013


On Thu, 2013-09-12 at 10:23 -0700, Brian C. Lane wrote:
> From: "Brian C. Lane" <bcl at redhat.com>
> 
> ---
>  pyanaconda/network.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/pyanaconda/network.py b/pyanaconda/network.py
> index d21e9b0..173de7c 100644
> --- a/pyanaconda/network.py
> +++ b/pyanaconda/network.py
> @@ -509,6 +509,9 @@ def kickstartNetworkData(ifcfg=None, hostname=None):
>          # pylint: disable-msg=E1101
>          return handler.NetworkData(hostname=hostname, bootProto="")
>  
> +    if not ifcfg:
> +        return None
> +
>      # no network command for bond slaves
>      if ifcfg.get("MASTER"):
>          return None
ACK.

-- 
Vratislav Podzimek

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



More information about the anaconda-patches mailing list