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:
parent
b67ac0933f
commit
7ec92d395c
@ -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'
|
||||
|
||||
@ -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],
|
||||
|
||||
Loading…
Reference in New Issue
Block a user