Make ensure => absent work again

The incremental update change made NS record updates work for non-glue NS
records, but broke `ensure => absent` because there is no semantic guarantee
that the contents of the `data` member match what's in DNS. Set math ensures
that hilarity ensues.
This commit is contained in:
Nate Riffe 2015-05-22 07:49:36 -05:00
parent 7555cdd4e0
commit a0f5ebde8a

View File

@ -83,11 +83,11 @@ module PuppetBind
end end
def rrdata_adds def rrdata_adds
newdata - rrdata resource[:ensure] === :absent ? [] : newdata - rrdata
end end
def rrdata_deletes def rrdata_deletes
type === 'SOA' ? [] : rrdata - newdata resource[:ensure] === :absent ? rrdata : (type === 'SOA' ? [] : rrdata - newdata)
end end
def server def server