@@ -25,7 +25,7 @@ locals {
2525 dockerLabels = length (var. docker_labels ) > 0 ? var.docker_labels : null
2626 dockerSecurityOptions = length (var. docker_security_options ) > 0 ? var.docker_security_options : null
2727 entrypoint = length (var. entrypoint ) > 0 ? var.entrypoint : null
28- environment = length ( var. environment ) > 0 ? var.environment : null
28+ environment = var.environment
2929 environmentFiles = length (var. environment_files ) > 0 ? var.environment_files : null
3030 essential = var.essential
3131 extraHosts = local.is_not_windows && length (var. extra_hosts ) > 0 ? var.extra_hosts : null
@@ -39,9 +39,9 @@ locals {
3939 logConfiguration = length (local. log_configuration ) > 0 ? local.log_configuration : null
4040 memory = var.memory
4141 memoryReservation = var.memory_reservation
42- mountPoints = length ( var. mount_points ) > 0 ? var.mount_points : null
42+ mountPoints = var.mount_points
4343 name = var.name
44- portMappings = length ( var. port_mappings ) > 0 ? var.port_mappings : null
44+ portMappings = var.port_mappings
4545 privileged = local.is_not_windows ? var.privileged : null
4646 pseudoTerminal = var.pseudo_terminal
4747 readonlyRootFilesystem = local.is_not_windows ? var.readonly_root_filesystem : null
@@ -53,7 +53,7 @@ locals {
5353 systemControls = length (var. system_controls ) > 0 ? var.system_controls : null
5454 ulimits = local.is_not_windows && length (var. ulimits ) > 0 ? var.ulimits : null
5555 user = local.is_not_windows ? var.user : null
56- volumesFrom = length ( var. volumes_from ) > 0 ? var.volumes_from : null
56+ volumesFrom = var.volumes_from
5757 workingDirectory = var.working_directory
5858 }
5959
0 commit comments