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:
parent
591e21a003
commit
4360534be8
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user