opennebula-5.2.0-xpathattrs.diff

Roy Keene, 11/04/2016 08:00 AM

Download (751 Bytes)

View differences:

opennebula-5.2.0-xpathattrs/src/datastore_mad/remotes/xpath.rb 2016-11-04 02:53:54.903507712 -0500
64 64
        values << ar.join(' ')
65 65
    else
66 66
        element = xml.elements[xpath.dup]
67
        values << element.text.to_s if !element.nil?
67
        if !element.nil?
68
            if element.class.method_defined?(:text)
69
                values << element.text.to_s
70
            else
71
                values << element.to_s
72
            end
73
        end
68 74
    end
69 75
    values << "\0"
70 76
end