Skip to content

Commit

Permalink
remove check for null for var.hms_ro_datanucleus_connection_pool_conf…
Browse files Browse the repository at this point in the history
…ig and var.hms_rw_datanucleus_connection_pool_config
  • Loading branch information
givanovexpe committed Jun 26, 2024
1 parent 054d9d4 commit f05dce5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions k8s-readonly.tf
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,8 @@ resource "kubernetes_deployment_v1" "apiary_hms_readonly" {
}

dynamic "env" {
for_each = {
for k, v in var.hms_ro_datanucleus_connection_pool_config :
k => v if v != null
}
for_each = var.hms_ro_datanucleus_connection_pool_config

content {
name = env.key
value = env.value
Expand Down
6 changes: 2 additions & 4 deletions k8s-readwrite.tf
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ resource "kubernetes_deployment_v1" "apiary_hms_readwrite" {
}

dynamic "env" {
for_each = {
for k, v in var.hms_rw_datanucleus_connection_pool_config :
k => v if v != null
}
for_each = var.hms_rw_datanucleus_connection_pool_config

content {
name = env.key
value = env.value
Expand Down

0 comments on commit f05dce5

Please sign in to comment.