forked from rodjek/rspec-puppet
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support dot-notation when retrieving facts in facter_impl
In Puppet 8, core providers are being confined using facts fetched using 'dot-notation'. We need to support this style of lookup in our stub implementation. For example in `lib/puppet/provider/service/init.rb` ```ruby confine :true => begin os = Puppet.runtime[:facter].value(:operatingsystem).downcase # ... ``` was updated to ```ruby confine :true => begin os = Puppet.runtime[:facter].value('os.name').downcase # ... ``` See puppetlabs/puppet@82cef23 for Puppet 8 change. Relates to #38
- Loading branch information
1 parent
612d8af
commit 074363e
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters