Skip to content

Commit e3f6e2f

Browse files
committed
Concat the whole ternary, reformat
1 parent 6bfb0ed commit e3f6e2f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

main.tf

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ locals {
8282
}
8383
}
8484

85-
volumes = var.ecs_launch_type == "FARGATE" ? [] : concat([
85+
volumes = concat(var.ecs_launch_type == "FARGATE" ? [] : [
8686
{
8787
name = "docker-sock"
8888
host_path = "/var/run/docker.sock"
@@ -97,14 +97,15 @@ locals {
9797
}
9898

9999
],
100-
var.socket_apm_enabled_on_ec2 ? [{
101-
name = "datadog-sock"
102-
host_path = "/var/run/datadog.sock"
103-
mount_point = {
104-
"sourceVolume" = "datadog-sock"
105-
"containerPath" = "/var/run/datadog.sock"
106-
"readOnly" = null
107-
}
100+
var.socket_apm_enabled_on_ec2 ? [
101+
{
102+
name = "datadog-sock"
103+
host_path = "/var/run/datadog.sock"
104+
mount_point = {
105+
"sourceVolume" = "datadog-sock"
106+
"containerPath" = "/var/run/datadog.sock"
107+
"readOnly" = null
108+
}
108109
}] : []
109110
)
110111

0 commit comments

Comments
 (0)