@@ -25,7 +25,7 @@ locals {
25
25
dockerLabels = length (var. docker_labels ) > 0 ? var.docker_labels : null
26
26
dockerSecurityOptions = length (var. docker_security_options ) > 0 ? var.docker_security_options : null
27
27
entrypoint = length (var. entrypoint ) > 0 ? var.entrypoint : null
28
- environment = length ( var. environment ) > 0 ? var.environment : null
28
+ environment = var.environment
29
29
environmentFiles = length (var. environment_files ) > 0 ? var.environment_files : null
30
30
essential = var.essential
31
31
extraHosts = local.is_not_windows && length (var. extra_hosts ) > 0 ? var.extra_hosts : null
@@ -39,9 +39,9 @@ locals {
39
39
logConfiguration = length (local. log_configuration ) > 0 ? local.log_configuration : null
40
40
memory = var.memory
41
41
memoryReservation = var.memory_reservation
42
- mountPoints = length ( var. mount_points ) > 0 ? var.mount_points : null
42
+ mountPoints = var.mount_points
43
43
name = var.name
44
- portMappings = length ( var. port_mappings ) > 0 ? var.port_mappings : null
44
+ portMappings = var.port_mappings
45
45
privileged = local.is_not_windows ? var.privileged : null
46
46
pseudoTerminal = var.pseudo_terminal
47
47
readonlyRootFilesystem = local.is_not_windows ? var.readonly_root_filesystem : null
@@ -53,7 +53,7 @@ locals {
53
53
systemControls = length (var. system_controls ) > 0 ? var.system_controls : null
54
54
ulimits = local.is_not_windows && length (var. ulimits ) > 0 ? var.ulimits : null
55
55
user = local.is_not_windows ? var.user : null
56
- volumesFrom = length ( var. volumes_from ) > 0 ? var.volumes_from : null
56
+ volumesFrom = var.volumes_from
57
57
workingDirectory = var.working_directory
58
58
}
59
59
0 commit comments