1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Bug ruby OCA: XMLElement:retrieve_elements always returned an empty array

This commit is contained in:
Carlos Martín 2011-05-30 15:44:05 +02:00
parent 591e21a003
commit 4360534be8

View File

@ -109,11 +109,11 @@ module OpenNebula
if NOKOGIRI
@xml.xpath(filter.to_s).each { |pelem|
elements_array << pelem.text if !pelem.text
elements_array << pelem.text if pelem.text
}
else
@xml.elements.each(filter.to_s) { |pelem|
elements_array << pelem.text if !pelem.text
elements_array << pelem.text if pelem.text
}
end