Skip to content

Commit

Permalink
log destination for compiled catalogs
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 3, 2023
1 parent 4e4b3b8 commit 6aeca18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/puppet/catalog-diff/compilecatalog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ def redact_sensitive(data)
end

def save_catalog_to_disk(save_directory, node_name, catalog, extention)
Puppet.debug("Saving catalog for #{node_name} to: #{save_directory}/#{node_name}.#{extention}")
File.open("#{save_directory}/#{node_name}.#{extention}", 'w') do |f|
f.write(catalog)
end
Expand Down

0 comments on commit 6aeca18

Please sign in to comment.