From de22bb8d60b1e990c0a5b06d01ea6ff534f1d91b Mon Sep 17 00:00:00 2001 From: Robert Wolf Date: Wed, 3 Nov 2021 00:11:09 +0100 Subject: [PATCH] fix for issue 21 "Autoloading and XmlLens loading fails" error "change from 'absent' to 'present' failed: Could not set 'present' on ensure: uninitialized constant XmlLens" --- lib/puppet/type/xmlfile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/type/xmlfile.rb b/lib/puppet/type/xmlfile.rb index 32a327d..ac6ba8f 100644 --- a/lib/puppet/type/xmlfile.rb +++ b/lib/puppet/type/xmlfile.rb @@ -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