jovandeginste / puppet-scoop

Manage your scoops with Puppet
Apache License 2.0
2 stars 1 forks source link

Update to ensure scoop facts are only loaded when scoop class is defined #4

Closed hopenbr closed 2 years ago

hopenbr commented 2 years ago

We were getting the below error for all Windows systems that were not configured to use scoop

error while resolving custom fact "scoop": The system cannot find the file specified.

Source: Facter

Moved the confine up to outer block solved the issue. Confine statements need to be on the outside of blocks not within the block itself