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