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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user