Feature #3671: Use sunstone vector in TemplateJSON

This commit is contained in:
Daniel Molina committed 2016-02-15 19:18:55 +01:00
1 parent add571d84a
commit 1c642ddd5e
1 file changed
+2 -2
@@ -99,13 +99,13 @@ module OpenNebulaJSON
def instantiate(params=Hash.new)
if params['template']
select_capacity = self['TEMPLATE/SUNSTONE_CAPACITY_SELECT']
select_capacity = self['TEMPLATE/SUNSTONE/CAPACITY_SELECT']
if (select_capacity && select_capacity.upcase == "NO")
params['template'].delete("CPU")
params['template'].delete("MEMORY")
end
select_network = self['TEMPLATE/SUNSTONE_NETWORK_SELECT']
select_network = self['TEMPLATE/SUNSTONE/NETWORK_SELECT']
if (select_network && select_network.upcase == "NO")
params['template'].delete("NIC")
end