Skip to content

libvirt_pool fails on centos 6.5 #31

@Xylakant

Description

@Xylakant

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions