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:
parent
e3d3c8b4d3
commit
703e51985e
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user