user_template_xml was returning the whole template instead of the user template

This commit is contained in:
Mariano Guezuraga authored and Ruben S. Montero committed 2014-10-10 10:26:14 +02:00
1 parent f528b603eb
commit 5411d24e85
1 file changed
+2 -2
+2 -2
View File
@@ -202,9 +202,9 @@ module OpenNebula
# @return [String] The USER_TEMPLATE
def user_template_xml
if NOKOGIRI
@xml.xpath('TEMPLATE').to_s
@xml.xpath('USER_TEMPLATE').to_s
else
@xml.elements['TEMPLATE'].to_s
@xml.elements['USER_TEMPLATE'].to_s
end
end