Skip to content

Commit

Permalink
Remove trailing characters from interface files
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Feb 4, 2020
1 parent dfa1d1b commit ce07c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/y2network/sysconfig/interface_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def defined_variables
# @return [Object] Value for the given key
def fetch_scalar(key, type)
path = Yast::Path.new(".network.value.\"#{interface}\".#{key}")
value = Yast::SCR.Read(path)
value = Yast::SCR.Read(path)&.rstrip
send("value_as_#{type}", value)
end

Expand Down

0 comments on commit ce07c5e

Please sign in to comment.