bug #2906: create arrays for repeated template variables

This commit is contained in:
Javi Fontan committed 2014-05-13 15:12:05 +02:00
1 parent 699a725fe6
commit 571a74aba8
1 file changed
+6 -1
+6 -1
View File
@@ -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