Skip to content

Commit 6acd0c5

Browse files
committed
make tests pass when credentials file is missing. take 4
1 parent cbb1e11 commit 6acd0c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ec2/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ locals {
6464
bastion_sg_name = "${var.cluster_name}-bastion-sg"
6565

6666
unison_credentials_file = "~/.local/share/unisonlanguage/credentials.json"
67-
unison_credentials = jsondecode(fileexists(local.unison_credentials_file) ? file(local.unison_credentials_file) : "{\"default\": {\"api.unison-lang.org\": {\"tokens\": {\"access_token\": \"\"}}}}")
67+
unison_credentials = jsondecode(fileexists(local.unison_credentials_file) ? file(local.unison_credentials_file) : "{\"credentials\":{\"default\": {\"api.unison-lang.org\": {\"tokens\": {\"access_token\": \"\"}}}}}")
6868
unison_token = local.unison_credentials.credentials.default["api.unison-lang.org"].tokens.access_token
6969
}
7070

0 commit comments

Comments
 (0)