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

Ignore missing command if ensure is not set to present #37

Merged
merged 2 commits into from
Feb 27, 2024

Conversation

TheMeier
Copy link
Owner

@TheMeier TheMeier commented Feb 27, 2024

The pre 2.0.0 version was happily ignoring if the command parameter was not set, in the case that the ensure parameter was set to absent.
Although I tried my best to make the 2.0.0 version as backward compatible as possible I did overlook this scenario.
This change will restore the previous behaviour in this case.

Also with the release of puppet-systemd the puppet 8 check where re-enabled.

in case ensure is absent, there is no need to define
the `command` parameter. This restores backward compatibility
with the 1.x version of the module.

in case `ensure` is `present`, the a failure will be raised
@TheMeier TheMeier changed the title Ignore if command is missing if ensure is not set to present Ignore missing command if ensure is not set to present Feb 27, 2024
@schustersv
Copy link

Nice, way more simple and elegant than #36
Thanks!

@TheMeier TheMeier merged commit 725d763 into main Feb 27, 2024
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants