From 6daef32acfbfad185134c13b445adf53c3fc4ba7 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Thu, 27 Jun 2013 16:05:55 +0200 Subject: [PATCH] feature #2054: Add "\n" when updating the template --- src/onegate/onegate-server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onegate/onegate-server.rb b/src/onegate/onegate-server.rb index 1536bac964..1f46ef12aa 100644 --- a/src/onegate/onegate-server.rb +++ b/src/onegate/onegate-server.rb @@ -105,7 +105,7 @@ put '/vm/:id' do template_str = vm.template_like_str('USER_TEMPLATE') # TODO check body format - template_str += request.body.read + template_str += "\n" + request.body.read rc = vm.update(template_str) if OpenNebula.is_error?(rc)