microsoft / symphony

CI/CD for IaC on multiple orchestrators
MIT License
178 stars 21 forks source link

./iac.tf.sh: line 117: _warning: command not found #254

Closed lukemurraynz closed 4 months ago

lukemurraynz commented 10 months ago

When attempting to use Terraform to destroy (i.e. rename Management Groups), I am getting the below error:

Saved the plan to: terraform.tfplan

To perform exactly these actions, run the following command to apply: terraform apply "terraform.tfplan" Detect destroy in .tfplan file ./iac.tf.sh: line 117: _warning: command not found

image

I added a separate step and can confirm that jq is already the latest version: image

lukemurraynz commented 10 months ago

Within the iac.tf.sh script: image

lukemurraynz commented 10 months ago

Adding:

_warning() { echo "WARNING: $1" }

to the file, resolved the issue.

image

image

hattan commented 4 months ago

Closing issue as change has been addressed and merged in.