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

Support dot-notation when retrieving facts in facter_impl #46

Merged
merged 1 commit into from
Mar 15, 2023

Commits on Mar 15, 2023

  1. 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 puppetlabs#38
    alexjfisher committed Mar 15, 2023
    Configuration menu
    Copy the full SHA
    074363e View commit details
    Browse the repository at this point in the history