mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-28 17:47:03 +03:00
Feature #2085: Add service id and role name to VM templates
This commit is contained in:
parent
ef0ad95f2e
commit
86c8f1f808
@ -246,7 +246,10 @@ module OpenNebula
|
||||
|
||||
template = OpenNebula::Template.new_with_id(template_id, @service.client)
|
||||
|
||||
vm_id = template.instantiate(vm_name)
|
||||
extra_template = "SERVICE_ID = #{@service.id()}\n"\
|
||||
"ROLE_NAME = #{@body['name']}"
|
||||
|
||||
vm_id = template.instantiate(vm_name, false, extra_template)
|
||||
|
||||
if OpenNebula.is_error?(vm_id)
|
||||
msg = "Role #{name} : Instantiate failed for template #{template_id}; #{vm_id.message}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user