Skip to content

Commit

Permalink
Dropped NetworkInterfaces#ifcfg_part
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Sep 19, 2018
1 parent 77d3a0c commit e2b05b2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions library/network/src/modules/NetworkInterfaces.rb
Expand Up @@ -185,12 +185,6 @@ def IsEmpty(value)
value.nil? ? true : value.empty?
end

def ifcfg_part(ifcfg, part)
return "" if Builtins.regexpmatch(ifcfg, @ifcfg_name_regex) != true
ret = Builtins.regexpsub(ifcfg, @ifcfg_name_regex, "\\#{part}")
ret.nil? ? "" : ret
end

# Detects a subtype of Ethernet device type according /sys or /proc content
#
# @example
Expand Down

0 comments on commit e2b05b2

Please sign in to comment.