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 need to run ddns update every time #35393

Merged
merged 1 commit into from Aug 12, 2016

Conversation

deniszh
Copy link
Contributor

@deniszh deniszh commented Aug 11, 2016

... - only if we're replacing record and record not exists.
After applying f0dbbd5 update() in ddns execute module never returns None.
(Compare with old code - https://github.com/saltstack/salt/blob/2015.5/salt/modules/ddns.py#L162-L173)
But None is still used in the corresponding state for change detection - https://github.com/saltstack/salt/blob/develop/salt/states/ddns.py#L73-L89
This PR makes update() return None if no updates are needed.

What does this PR do?

Fixing issue #35350 - now Salt emits ddns updates only when needed.

What issues do this PR fix or reference?

#35350

Previous Behavior

DDNS record was updated every Salt run.

New Behavior

DDNS record is updating if needed.

Tests written?

No

only if we replacing record or it doesn't exist.
@cachedout cachedout merged commit b3e9e98 into saltstack:2016.3 Aug 12, 2016
@cachedout
Copy link
Contributor

Thanks very much @deniszh

@deniszh deniszh deleted the 2016.3_fix35350 branch August 12, 2016 13:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants