mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-17 10:23:58 +09:00
bug #2906: create arrays for repeated template variables
This commit is contained in:
1 parent
699a725fe6
commit
571a74aba8
1 file changed
+6
-1
@@ -72,7 +72,12 @@ module OpenNebula
|
||||
if @levels[@current].empty?
|
||||
@levels[@current-1][name] = @value || {}
|
||||
else
|
||||
@levels[@current-1][name] = @levels[@current]
|
||||
if @levels[@current-1][name]
|
||||
@levels[@current-1][name] = [@levels[@current-1][name], @levels[@current]].flatten
|
||||
else
|
||||
@levels[@current-1][name] = @levels[@current]
|
||||
end
|
||||
|
||||
@levels[@current] = Hash.new
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user