bitops-plugins / terraform

Terraform plugin for bitops
0 stars 1 forks source link

Remove 'DEBUGGING' output #27

Open mcascone opened 1 year ago

mcascone commented 1 year ago

During a terraform bitops run, we see this output:

DEBUGGING: [/opt/bitops/scripts/installed_plugins/terraform/scripts]
Copying defaults
DEBUGGING: [/opt/bitops/scripts/installed_plugins/terraform/scripts]
cd Terraform Root: /tmp/tmpwu392dyx/deployment/terraform
Listing contents of Terraform Root: /tmp/tmpwu392dyx/deployment/terraform
total 88
drwxr-xr-x    5 root     root          4096 Jun 16 18:54 .
drwxr-xr-x    6 root     root          4096 Jun 16 18:52 ..
drwxr-xr-x    3 root     root          4096 Jun 16 15:38 .terraform
-rw-r--r--    1 root     root          3201 Jun  6 20:10 .terraform.lock.hcl
-rw-r--r--    1 root     root            51 Jun 16 18:54 azure-resource_identifier.auto.tfvars
-rw-r--r--    1 root     root            89 Jun 16 18:54 azure-vm-admin-credentials.auto.tfvars
drwxr-xr-x    2 root     root          4096 Jun 16 18:53 bitops.after-deploy.d
drwxr-xr-x    2 root     root          4096 Jun 14 20:01 bitops.before-deploy.d
-rw-r--r--    1 root     root           102 Jun 16 18:54 bitops.config.yaml
-rw-r--r--    1 root     root           635 Jun 16 18:24 inventory.tf
-rw-r--r--    1 root     root           352 Jun 16 17:57 inventory.tmpl
-rwxr-xr-x    1 root     root           439 Jun 16 18:51 inventory.yaml
-rw-r--r--    1 root     root           732 Jun 14 20:01 locals.tf
-rw-r--r--    1 root     root           603 Jun 14 20:01 main.tf
-rw-r--r--    1 root     root          4154 Jun 14 20:01 network.tf
-rw-r--r--    1 root     root           414 Jun 14 20:01 outputs.tf
-rw-r--r--    1 root     root           601 Jun 14 20:01 private_key.tf
-rw-r--r--    1 root     root           487 Jun 16 18:54 provider.tf
-rw-r--r--    1 root     root           571 Jun 16 18:54 terraform.tfvars
-rw-r--r--    1 root     root          1988 Jun 14 20:01 variables.tf
-rw-r--r--    1 root     root          2855 Jun 14 20:01 vm.tf

Let's not print this unless DEBUG MODE is on.