mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-19 03:12:55 +09:00
Fix bug in XMLUtils attr with Nokogiri(cherry picked from commit 4f2ea6b9aa)
(cherry picked from commit 2250ec8f17)
This commit is contained in:
1 parent
17d9dd08c5
commit
bf2b2b3a05
1 file changed
+3
-1
@@ -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]
|
||||
|
||||
|
||||
Reference in new issue
Block a user