voxpupuli / puppet-kmod

manage kernel module with puppet
Apache License 2.0
17 stars 63 forks source link

Fix file detection to gather kmod fact #75

Closed kajinamit closed 2 years ago

kajinamit commented 2 years ago

Pull Request (PR) description

File.exists? can't be used with confine. It should be used in actual logics, otherwise fact gathering fails with the following error.

error while resolving custom facts in .../lib/facter/kmod.rb: expected argument to be a String, Symbol, or Hash

This Pull Request (PR) fixes the following issues

Fixes #74

bastelfreak commented 2 years ago

thanks!