no need to double strip this line

This commit is contained in:
Sam 2018-11-23 14:48:02 +11:00
parent 4c6eeaac15
commit d7b0f0069c
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ def swap_address(hosts, name, ips)
hosts.split("\n").each do |line|
line.strip!
if line[0] != '#'
_, hostname = line.strip.split(/\s+/)
_, hostname = line.split(/\s+/)
next if hostname == name
end
new_file << line