Skip to content

Commit

Permalink
Fixes building device description. bnc#862378
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Feb 11, 2014
1 parent c62ac66 commit 30efa50
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/modules/LanItems.rb
Expand Up @@ -1226,14 +1226,8 @@ def BuildLanOverview
Ops.get_string(@Items, [key, "ifcfg"], "")
)
end
descr = BuildDescription(
@type,
NetworkInterfaces.GetType(
Ops.get_string(@Items, [key, "ifcfg"], "")
),
NetworkInterfaces.Current,
[Ops.get_map(@Items, [key, "hwinfo"], {})]
)
ifcfg_desc = GetDeviceMap(key)["NAME"]
descr = ifcfg_desc if !ifcfg_desc.nil? && !ifcfg_desc.empty?
dev = NetworkInterfaces.Name #NetworkInterfaces::device_name(type, NetworkInterfaces::Name);
ip = DeviceProtocol(NetworkInterfaces.Current)
status = DeviceStatus(
Expand Down

0 comments on commit 30efa50

Please sign in to comment.