Skip to content

Commit

Permalink
ensure that hosts are not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 12, 2016
1 parent 8d9d6b8 commit b5fd998
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package/yast2-network.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 2 additions & 0 deletions src/modules/Host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def main
@modified = false

@initialized = false

@hosts = CFA::Hosts.new
end

# Remove all entries from the host table.
Expand Down

0 comments on commit b5fd998

Please sign in to comment.