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)
(cherry picked from commit 2250ec8f179568e9f221f956d76d41774bd80616)
This commit is contained in:
parent
17d9dd08c5
commit
bf2b2b3a05
@ -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