Skip to content

Commit

Permalink
configurer monkey patch: add awareness of some other versions with AP…
Browse files Browse the repository at this point in the history
…I changes
  • Loading branch information
ffrank committed Feb 25, 2024
1 parent 61312ed commit 8c2827f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/puppetx/catalog_translation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ def get_simple_catalog
prepare_and_retrieve_catalog(nil, facts, options, query_options)
else
query_options = get_facts(options)
if Puppet::Util::Package.versioncmp(Puppet::PUPPETVERSION, '6.12.0') != -1
versions_with_cached_parameter = %w{5.5.18 5.5.19 5.5.20 5.5.21 5.5.22 6.4.5}
if Puppet::Util::Package.versioncmp(Puppet::PUPPETVERSION, '6.12.0') != -1 or
versions_with_cached_parameter.include?(Puppet::PUPPETVERSION)
prepare_and_retrieve_catalog(nil, options, query_options)
else
prepare_and_retrieve_catalog(options, query_options)
Expand Down

0 comments on commit 8c2827f

Please sign in to comment.