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

View File

@ -1,5 +1,5 @@
name 'inkblot/bind' name 'inkblot/bind'
version '2.0.0' version '2.0.1'
source 'git://github.com/inkblot/puppet-bind' source 'git://github.com/inkblot/puppet-bind'
author 'inkblot' author 'inkblot'
license 'Apache 2.0' license 'Apache 2.0'

View File

@ -108,7 +108,7 @@ private
def query def query
unless @query unless @query
@query = dig("@#{server}", '-c', rrclass, '+noall', '+answer', name, type).lines.map do |line| @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], :name => linearray[0],
:ttl => linearray[1], :ttl => linearray[1],