Feature #2054 #2124: onegate uses the new append template method

This commit is contained in:
Carlos Martín committed 2013-06-28 18:45:27 +02:00
1 parent f1d836f11a
commit 3898f8ba18
1 file changed
+1 -5
+1 -5
View File
@@ -103,12 +103,8 @@ put '/vm/:id' do
logger.error {"VMID:#{params[:id]} vm.info error: #{rc.message}"}
halt 404, rc.message
else
template_str = vm.template_like_str('USER_TEMPLATE')
rc = vm.update(request.body.read, true)
# TODO check body format
template_str += "\n" + request.body.read
rc = vm.update(template_str)
if OpenNebula.is_error?(rc)
logger.error {"VMID:#{params[:id]} vm.update \
error: #{rc.message}"}