mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Add default values to OCCI custom.erb
This commit is contained in:
parent
bf2b2b3a05
commit
33d7eafc9c
@ -4,5 +4,11 @@
|
||||
# You can also add specific attributes for your cloud in this file (e.g. OS).
|
||||
#
|
||||
|
||||
CPU = "<%= @vm_info['CPU'] %>"
|
||||
MEMORY = "<%= @vm_info['MEMORY'] %>"
|
||||
# Default values for VM capacity
|
||||
<%
|
||||
DEFAULT_CPU = 1
|
||||
DEFAULT_MEMORY = 128
|
||||
%>
|
||||
|
||||
CPU = "<%= @vm_info['CPU'].nil? ? DEFAULT_CPU : @vm_info['CPU'] %>"
|
||||
MEMORY = "<%= @vm_info['MEMORY'].nil? ? DEFAULT_MEMORY : @vm_info['MEMORY'] %>"
|
||||
|
Loading…
x
Reference in New Issue
Block a user