From b13ac200f33fe204480a99dd606653318ba1e4d2 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Fri, 9 Apr 2021 16:03:05 -0700 Subject: [PATCH] cue fmt Signed-off-by: Sam Alba --- stdlib/aws/ecr/ecr.cue | 4 ++-- stdlib/aws/ecs/run-task.cue | 27 +++++++++++++++------------ stdlib/aws/elb/elb.cue | 2 +- 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/stdlib/aws/ecr/ecr.cue b/stdlib/aws/ecr/ecr.cue index b87d0826..75b0c050 100644 --- a/stdlib/aws/ecr/ecr.cue +++ b/stdlib/aws/ecr/ecr.cue @@ -19,12 +19,12 @@ import ( // ECR credentials credentials: dagger.#RegistryCredentials & { username: "AWS" - secret: out + secret: out } aws.#Script & { "config": config - export: "/out" + export: "/out" code: """ aws ecr get-login-password > /out """ diff --git a/stdlib/aws/ecs/run-task.cue b/stdlib/aws/ecs/run-task.cue index 3e4c25f0..c1ce72cf 100644 --- a/stdlib/aws/ecs/run-task.cue +++ b/stdlib/aws/ecs/run-task.cue @@ -29,15 +29,18 @@ import ( roleArn: string | *"" containerOverrides: { - "containerOverrides": [{ - name: containerName - if len(containerCommand) > 0 { - "command": containerCommand - } - if len(containerEnvironment) > 0 { - "environment": [ for k, v in containerEnvironment {"name": k, "value": v}] - } - }] + containerOverrides: [{ + name: containerName + if len(containerCommand) > 0 { + command: containerCommand + } + if len(containerEnvironment) > 0 { + environment: [ for k, v in containerEnvironment { + name: k + value: v + }] + } + }] if roleArn != "" { taskRoleArn: roleArn } @@ -45,10 +48,10 @@ import ( aws.#Script & { "config": config - export: "/out" + export: "/out" files: { - "/inputs/cluster": cluster - "/inputs/task_arn": taskArn + "/inputs/cluster": cluster + "/inputs/task_arn": taskArn "/inputs/container_overrides": containerOverrides } code: #""" diff --git a/stdlib/aws/elb/elb.cue b/stdlib/aws/elb/elb.cue index 30238ab0..bba5e39c 100644 --- a/stdlib/aws/elb/elb.cue +++ b/stdlib/aws/elb/elb.cue @@ -21,7 +21,7 @@ import ( "/inputs/aws/secret_key": config.secretKey "/inputs/listenerArn": listenerArn if vhost != _|_ { - "/inputs/vhost": vhost + "/inputs/vhost": vhost } }