Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No updates if only difference is in TTL. #140

Open
magior opened this issue Apr 11, 2018 · 1 comment
Open

No updates if only difference is in TTL. #140

magior opened this issue Apr 11, 2018 · 1 comment

Comments

@magior
Copy link

magior commented Apr 11, 2018

If the only difference in one record is in the TTL the nsupdate file isn't populated with "update add" command and Puppet keeps notify the difference on any run.

I think that inserting a check and returning newdata on rrdata_adds if @properties[:ttl] is not empty could be a possible workaround.
Something like this on nsupdate.rb:

if (@properties[:ttl] == nil)
resource[:ensure] === :absent ? [] : newdata - rrdata
else
resource[:ensure] === :absent ? [] : newdata
end

@jcharaoui
Copy link

Tested and works for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants