File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ locals {
3636 dockerLabels = jsonencode (var. dockerLabels )
3737 dockerSecurityOptions = jsonencode (var. dockerSecurityOptions )
3838 entryPoint = jsonencode (var. entryPoint )
39- environment = jsonencode (var. environment )
4039 extraHosts = jsonencode (var. extraHosts )
4140
41+ environment = jsonencode (var. environment != {} ? [for k , v in var . environment : { " name" : k, " value" : v }] : [])
4242 healthCheck = replace (jsonencode (var. healthCheck ), local. classes [" digit" ], " $1" )
4343
4444 links = jsonencode (var. links )
Original file line number Diff line number Diff line change @@ -49,9 +49,9 @@ variable "entryPoint" {
4949}
5050
5151variable "environment" {
52- default = []
52+ default = {}
5353 description = " The environment variables to pass to a container"
54- type = list ( map (string ) )
54+ type = map (string )
5555}
5656
5757variable "essential" {
You can’t perform that action at this time.
0 commit comments