Skip to content

Commit

Permalink
Happy rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Jun 26, 2017
1 parent 9c025fd commit 45601c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/network/network_autoyast.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ def configure_hosts(write: false)
hosts_config = (ay_host_section["hosts"] || {}).map do |host|
# we neet to guarantee order of the items here
[host["host_address"] || "", host["names"] || []]
end.to_h.delete_if { |k, v| k.empty? || v.empty? }
end
hosts_config = hosts_config.to_h.delete_if { |k, v| k.empty? || v.empty? }

configure_submodule(Host, "hosts" => hosts_config, write: write)
end
Expand Down

0 comments on commit 45601c4

Please sign in to comment.