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:
parent
b339f235b4
commit
9802373ae6
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user