mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Fix bug in XMLUtils attr with Nokogiri(cherry picked from commit 4f2ea6b9aaf45e7ec75f3137a45dd1d1dcb1863d)
This commit is contained in:
parent
18361ccfe6
commit
2250ec8f17
@ -106,7 +106,9 @@ module OpenNebula
|
||||
return nil
|
||||
end
|
||||
|
||||
value = element[name] if element != nil
|
||||
attribute = element.attr(name)
|
||||
|
||||
value = attribute.text if attribute != nil
|
||||
else
|
||||
element=@xml.elements[key.to_s.upcase]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user