From 1063b4d93ece95a8633143470e094a6c542a1da0 Mon Sep 17 00:00:00 2001 From: Felix Gilcher Date: Mon, 23 Jun 2014 16:27:07 +0200 Subject: [PATCH] remove general include of REXML this fixes #31 where the provider fails on CentOS 6.5 (probably on older ruby versions in general) --- lib/puppet/provider/libvirt_pool/virsh.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/puppet/provider/libvirt_pool/virsh.rb b/lib/puppet/provider/libvirt_pool/virsh.rb index a64fded..ddb6564 100644 --- a/lib/puppet/provider/libvirt_pool/virsh.rb +++ b/lib/puppet/provider/libvirt_pool/virsh.rb @@ -1,8 +1,6 @@ require 'rexml/document' require 'tempfile' -include REXML - Puppet::Type.type(:libvirt_pool).provide(:virsh) do commands :virsh => 'virsh' @@ -147,7 +145,7 @@ def exists? end def buildPoolXML(resource) - root = Document.new + root = REXML::Document.new # pool pool = root.add_element 'pool', {'type' => resource[:type]} # name