1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

bug #1239: xpath.rb doesn't work with ruby 1.9.2p0

This commit is contained in:
Daniel Molina 2012-04-19 15:03:49 +03:00
parent e3d3c8b4d3
commit 703e51985e

View File

@ -46,7 +46,7 @@ tmp = Base64::decode64(tmp64)
xml = REXML::Document.new(tmp).root
ARGV.each do |xpath|
element = xml.elements[xpath]
element = xml.elements[xpath.dup]
values << element.text.to_s if !element.nil?
values << "\0"
end