From 8f29000d35143f52f05258871feb1a6e927a36fe Mon Sep 17 00:00:00 2001 From: Mariano Guezuraga Date: Mon, 22 Sep 2014 23:19:09 +0200 Subject: [PATCH] user_template_xml was returning the whole template instead of the user template --- src/oca/ruby/opennebula/virtual_machine.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/oca/ruby/opennebula/virtual_machine.rb b/src/oca/ruby/opennebula/virtual_machine.rb index 87bbd37a97..5d78a62903 100644 --- a/src/oca/ruby/opennebula/virtual_machine.rb +++ b/src/oca/ruby/opennebula/virtual_machine.rb @@ -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