Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF_LOG = DEBUG causes task to fail from [INFO] lines being logged #30

Open
philcarbone opened this issue Aug 2, 2019 · 0 comments
Open

Comments

@philcarbone
Copy link

Setting the environment variable TF_LOG to DEBUG is causing the task to fail (when it previously did not). Azure DevOps is saying the failing line is the first line with [INFO]. Please see the output below:

2019-08-02T13:54:07.4782972Z ##[section]Starting: Terraform init 
2019-08-02T13:54:07.4893369Z ==============================================================================
2019-08-02T13:54:07.4893495Z Task         : Run Terraform
2019-08-02T13:54:07.4893582Z Description  : Run a Terraform on the build agent
2019-08-02T13:54:07.4893653Z Version      : 2.4.0
2019-08-02T13:54:07.4893734Z Author       : Peter Groenewegen - Xpirit
2019-08-02T13:54:07.4893844Z Help         : [More Information](https://pgroene.wordpress.com/2016/06/14/getting-started-with-terraform-on-windows-and-azure/)
2019-08-02T13:54:07.4894094Z ==============================================================================
2019-08-02T13:54:36.8165732Z 
2019-08-02T13:54:36.8166228Z 
2019-08-02T13:54:36.8166359Z     Directory: C:\
2019-08-02T13:54:36.8166443Z 
2019-08-02T13:54:36.8166488Z 
2019-08-02T13:54:36.8170274Z Mode                LastWriteTime         Length Name                                                                  
2019-08-02T13:54:36.8173426Z ----                -------------         ------ ----                                                                  
2019-08-02T13:54:36.8178672Z d-----         8/2/2019   1:54 PM                terraform-download                                                    
2019-08-02T13:54:37.5277308Z Terraform version:
2019-08-02T13:54:38.3989163Z 2019/08/02 13:54:38 [INFO] Terraform version: 0.12.6  
2019-08-02T13:54:38.3990010Z 2019/08/02 13:54:38 [INFO] Go runtime version: go1.12.4
2019-08-02T13:54:38.3990408Z 2019/08/02 13:54:38 [INFO] CLI args: []string{"c:\\terraform-download\\terraform.exe", "--version"}
2019-08-02T13:54:38.3992100Z 2019/08/02 13:54:38 [DEBUG] Attempting to open CLI config file: C:\Users\VssAdministrator\AppData\Roaming\terraform.rc
2019-08-02T13:54:38.3992873Z 2019/08/02 13:54:38 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019-08-02T13:54:38.4004470Z 2019/08/02 13:54:38 [INFO] CLI command args: []string{"version", "--version"}
2019-08-02T13:54:38.4004741Z Terraform v0.12.6
2019-08-02T13:54:38.4007016Z 2019/08/02 13:54:38 [DEBUG] checking for provider in "."
2019-08-02T13:54:38.4008672Z 2019/08/02 13:54:38 [DEBUG] checking for provider in "c:\\terraform-download"
2019-08-02T13:54:38.4009337Z 2019/08/02 13:54:38 [INFO] Failed to read plugin lock file .terraform\plugins\windows_amd64\lock.json: open .terraform\plugins\windows_amd64\lock.json: The system cannot find the path specified.
2019-08-02T13:54:40.1228245Z ##[command]"terraform" init -input=false -no-color
2019-08-02T13:54:40.5731063Z ##[error]2019/08/02 13:54:40 [INFO] Terraform version: 0.12.6  
2019-08-02T13:54:41.8983073Z ##[section]Finishing: Terraform init 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant