mirror of
https://gitea.fenix-dev.com/fenix-gitea-admin/iac-opentofu-private.git
synced 2025-10-27 15:53:06 +00:00
Merge pull request 'Update proxmox.tf' (#154) from fenix-admin into main
Reviewed-on: fenix-gitea-admin/iac-teste#154
This commit is contained in:
@ -64,11 +64,11 @@ locals {
|
||||
})
|
||||
)
|
||||
}
|
||||
merge = function([any, any], any) => { local._deep_merge_impl(args[0],args[1]) },
|
||||
merge = (function([any, any], any) => { local._deep_merge_impl(args[0],args[1]) })
|
||||
|
||||
# Função recursiva para merge de mapas/listas
|
||||
deep_merge = {
|
||||
_deep_merge_impl = function(any, any) any => {
|
||||
_deep_merge_impl = (function(any, any) any => {
|
||||
let base = args[0]
|
||||
let override = args[1]
|
||||
let result = {}
|
||||
@ -84,7 +84,7 @@ locals {
|
||||
}
|
||||
)
|
||||
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
merged_cloudinit = { for vm_name, vm_cfg in local.vm_cloudinits : vm_name => local.deep_merge._deep_merge_impl(local.base_cloudinit, vm_cfg) }
|
||||
|
||||
Reference in New Issue
Block a user