Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jun 12, 2019
1 parent 8adf989 commit e379179
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/y2network/config_reader/sysconfig_interfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
require "y2network/sysconfig_interface_file"

Yast.import "LanItems"
Yast.import "NetworkInterfaces"

module Y2Network
module ConfigReader
Expand Down Expand Up @@ -82,7 +81,7 @@ def physical_interfaces
@physical_interfaces ||= Yast::LanItems.Hardware.map do |card|
iface = Y2Network::PhysicalInterface.new(card["dev_name"])
iface.description = card["name"]
iface.type = card["type"].to_sym
iface.type = card["type"].nil? ? :eth : card["type"].to_sym
iface
end
end
Expand Down

0 comments on commit e379179

Please sign in to comment.