Skip to content

Commit

Permalink
Merge pull request #3887 from jpartlow/pe-36947-allow-for-puppet-util…
Browse files Browse the repository at this point in the history
…-puppetdb-config-flush

(PE-36947) Allow for Puppet::Util::Puppetdb to flush config
  • Loading branch information
jpartlow authored Oct 6, 2023
2 parents e71ff08 + db147a0 commit df6a718
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions puppet/lib/puppet/util/puppetdb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class InventorySearchError < Puppet::Error
class SoftWriteFailError < Puppet::Error
end

# Flushes the Puppetdb class's @config instance so that we can pick up
# updated configuration since the last time Puppetdb.config was called.
def self.clear_config
@config = nil
end

def self.config
@config ||= Puppet::Util::Puppetdb::Config.load
Expand Down

0 comments on commit df6a718

Please sign in to comment.