Fixes a problem with the split of dig's output

Split at whitespace rather than tabs, since dig is "smart" about formatting.
The bug was causing superfluous updates.
This commit is contained in:
Nate Riffe
2014-01-20 16:25:16 -06:00
parent b67ac0933f
commit 7ec92d395c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ private
def query
unless @query
@query = dig("@#{server}", '-c', rrclass, '+noall', '+answer', name, type).lines.map do |line|
linearray = line.chomp.split /\t+/
linearray = line.chomp.split /\s+/
{
:name => linearray[0],
:ttl => linearray[1],