Bug #2535: put quotes around role name in the instantiate extra template

This commit is contained in:
Carlos Martín committed 2013-12-03 16:16:32 +01:00
1 parent bdef5c9799
commit 5edbe4df2d
1 file changed
+1 -1
+1 -1
View File
@@ -250,7 +250,7 @@ module OpenNebula
template = OpenNebula::Template.new_with_id(template_id, @service.client)
extra_template = "SERVICE_ID = #{@service.id()}\n"\
"ROLE_NAME = #{@body['name']}"
"ROLE_NAME = \"#{@body['name']}\""
vm_id = template.instantiate(vm_name, false, extra_template)