From b5fd99874c7103697d5931538e076e41972e2de1 Mon Sep 17 00:00:00 2001 From: Josef Reidinger Date: Wed, 12 Oct 2016 16:12:17 +0200 Subject: [PATCH] ensure that hosts are not nil --- package/yast2-network.spec | 2 +- src/modules/Host.rb | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/package/yast2-network.spec b/package/yast2-network.spec index aaeaf92a9..237072dc3 100644 --- a/package/yast2-network.spec +++ b/package/yast2-network.spec @@ -98,7 +98,7 @@ rake install DESTDIR="%{buildroot}" %{yast_schemadir}/autoyast/rnc/host.rnc %{yast_libdir}/network %dir %{yast_libdir}/cfa/ -%{yast_libdir}/cfa/host.rb +%{yast_libdir}/cfa/hosts.rb %{yast_ydatadir}/network %dir %{yast_docdir} diff --git a/src/modules/Host.rb b/src/modules/Host.rb index 520a18aa9..41a62a7a3 100644 --- a/src/modules/Host.rb +++ b/src/modules/Host.rb @@ -44,6 +44,8 @@ def main @modified = false @initialized = false + + @hosts = CFA::Hosts.new end # Remove all entries from the host table.