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

systemd::udev::rule: param rules now defaults to [] / fix broken tests #260

Merged
merged 4 commits into from
Mar 2, 2022

Conversation

bastelfreak
Copy link
Member

Pull Request (PR) description

This Pull Request (PR) fixes the following issues

@bastelfreak bastelfreak added the bug Something isn't working label Mar 1, 2022
@bastelfreak bastelfreak self-assigned this Mar 1, 2022
@bastelfreak bastelfreak marked this pull request as ready for review March 1, 2022 14:12
@@ -23,8 +23,8 @@
# The literal udev rules you want to deploy
#
define systemd::udev::rule (
Array $rules,
Enum['present', 'absent', 'file'] $ensure = 'present',
Array $rules = [],
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed this so it always has a value. if you use the defined resource to remove a udev rule you now only have to set $ensure to absent. Without this change you also would need to set $rules

@ekohl ekohl merged commit 44a64ea into voxpupuli:master Mar 2, 2022
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