1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-12 08:58:17 +03:00

feature #2909: Include custom attrs in the vm_template_contents var

This commit is contained in:
Daniel Molina 2014-06-09 17:42:29 +02:00
parent b339f235b4
commit 9802373ae6

View File

@ -438,6 +438,13 @@ post '/service_template/:id/action' do
end
}
end
if role["user_inputs_values"]
role["vm_template_contents"] ||= ""
role["user_inputs_values"].each{ |key, value|
role["vm_template_contents"] += "\n#{key}=#{value}"
}
end
}
instantiate_template_json = instantiate_template.to_json