1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-24 21:34:01 +03:00

Feature #2917: more code legibility fixes

This commit is contained in:
Jaime Melis 2014-07-16 11:10:19 +02:00
parent e7a04d5487
commit 91b10ad2ef

View File

@ -137,11 +137,11 @@ helpers do
end
NIC_VALID_KEYS = %w(IP IP6_LINK IP6_SITE IP6_GLOBAL NETWORK MAC)
USER_TEMPLATE_INVALID_KEYS = %w(SCHED_MESSAGE )
USER_TEMPLATE_INVALID_KEYS = %w(SCHED_MESSAGE)
def build_vm_hash(vm_hash)
nics = []
vm_hash["TEMPLATE"]["NIC"].each do |nic|
nics << nic.select{|k,v| NIC_VALID_KEYS.include?(k)}
end