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

(PUP-1881) Correct Windows runinterval behavior #9401

Merged
merged 2 commits into from
Jun 20, 2024

Conversation

mhashizume
Copy link
Contributor

Previously when Puppet parsed a runinterval of 0 on Windows, it would set the runinterval to 1800 seconds, Puppet's default runinterval value. This was incorrect behavior, as on other platforms and in the documentation, a runinterval of 0 indicates that Puppet should run continuously.

This commit updates the Windows daemon to set the runinterval to 1800 seconds when it receives an empty string and cast to integer in all other cases.

(cherry picked from commit 2fafe0b)
Previously when Puppet parsed a runinterval of 0 on Windows, it would
set the runinterval to 1800 seconds, Puppet's default runinterval value.
This was incorrect behavior, as on other platforms and in the
documentation, a runinterval of 0 indicates that Puppet should run
continuously.

This commit updates the Windows daemon to set the runinterval to 1800
seconds when it receives an empty string and cast to integer in all
other cases.

(cherry picked from commit 688bf6f)
@mhashizume mhashizume added the bug Something isn't working label Jun 20, 2024
@mhashizume mhashizume requested a review from a team as a code owner June 20, 2024 18:37
@mhashizume
Copy link
Contributor Author

This is a manual backport of #9397. The automatic backport failed because of a minor style change between 7.x and main branches that was introduced in 4bdc8e2

@mhashizume mhashizume merged commit a48cff2 into puppetlabs:7.x Jun 20, 2024
12 checks passed
@mhashizume mhashizume deleted the PUP-1881/7.x/backport branch June 20, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants