Fix bug in XMLUtils attr with Nokogiri(cherry picked from commit 4f2ea6b9aa)

(cherry picked from commit 2250ec8f17)
This commit is contained in:
Daniel Molina committed 2010-12-09 16:33:26 +01:00
1 parent 17d9dd08c5
commit bf2b2b3a05
1 file changed
+3 -1
+3 -1
View File
@@ -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]