Skip to content

Commit

Permalink
Fix letsencrypt missing parameters
Browse files Browse the repository at this point in the history
Fixes #3638

Update `core/terraform/outputs.sh` to handle empty `tre_output.json` file

* Add a check to see if `tre_output.json` is empty
* If `tre_output.json` is empty, run `terraform init` to recreate it

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/microsoft/AzureTRE/issues/3638?shareId=XXXX-XXXX-XXXX-XXXX).
  • Loading branch information
marrobi committed Jan 30, 2025
1 parent 7c88fe4 commit b97fc7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/terraform/outputs.sh
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
set -e

if [ ! -f ../tre_output.json ]; then
if [ ! -f ../tre_output.json ] || [ ! -s ../tre_output.json ]; then
# Connect to the remote backend of Terraform
export TF_LOG=""
# shellcheck disable=SC2154
Expand Down

0 comments on commit b97fc7d

Please sign in to comment.