1
0
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:
Daniel Molina 2010-12-09 17:23:58 +01:00
parent bf2b2b3a05
commit 33d7eafc9c

View File

@ -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'] %>"