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'
version '2.0.0'
version '2.0.1'
source 'git://github.com/inkblot/puppet-bind'
author 'inkblot'
license 'Apache 2.0'

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],