Using the libvirt_pool type on centos 6.5 fails with
Error: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer
Error: Could not autoload puppet/type/exec: Could not autoload puppet/provider/exec/windows: can't convert Hash into Integer
The problem is probably related to the outdated ruby 1.8.7 on CentOS 6.5. The issue gets triggered by the include REXML line in the provider class (https://github.com/thias/puppet-libvirt/blob/master/lib/puppet/provider/libvirt_pool/virsh.rb#L4). This line can be removed if in line 150 the Document.new is replaced with REXML::Document.new. This fixes the issue.
Will try to provide a proper PR next week, just wanted to record this while it's fresh.
Using the libvirt_pool type on centos 6.5 fails with
The problem is probably related to the outdated ruby 1.8.7 on CentOS 6.5. The issue gets triggered by the
include REXMLline in the provider class (https://github.com/thias/puppet-libvirt/blob/master/lib/puppet/provider/libvirt_pool/virsh.rb#L4). This line can be removed if in line 150 theDocument.newis replaced withREXML::Document.new. This fixes the issue.Will try to provide a proper PR next week, just wanted to record this while it's fresh.