Skip to content

Commit

Permalink
fix for issue 21 "Autoloading and XmlLens loading fails"
Browse files Browse the repository at this point in the history
error "change from 'absent' to 'present' failed: Could not set 'present' on ensure: uninitialized constant XmlLens"
  • Loading branch information
wolfaba authored and alexjfisher committed Mar 28, 2023
1 parent bd2f9db commit de22bb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/type/xmlfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ def should_content # Ape the name from property::should
end

res.each do |resource|
process = XmlLens.new(xml_content, resource[:changes], resource[:onlyif])
process = PuppetX::VoxPupuli::Xmlfile::Lens.new(xml_content, resource[:changes], resource[:onlyif])
xml_content = process.evaluate
end

Expand Down

0 comments on commit de22bb8

Please sign in to comment.