dikhan / terraform-provider-openapi

OpenAPI Terraform Provider that configures itself at runtime with the resources exposed by the service provider (defined in a swagger file)
Apache License 2.0
275 stars 48 forks source link

Internal process that checks terraform compliant resources is run twice #178

Closed dikhan closed 5 years ago

dikhan commented 5 years ago

Describe the bug

Seems like the bit of code in charge of finding compliant terraform resources is running twice based on the logging output:

....
2019/10/31 13:56:31 [INFO] found 18 terraform compliant resources (time: 1.572121ms)
....
2019/10/31 13:56:31 [INFO] found 18 terraform compliant resources (time: 1.099505ms)
....

To Reproduce

A clear and concise description on how does it work now and what's the current behaviour.

Steps to reproduce the behavior:

  1. Using an openapi swagger file for the terraform openapi plugin
  2. execute TF_LOG=DEBUG terraform apply
  3. the output will show the above aforementioned dup

Expected behaviour

A clear and concise description of what you expected to happen.

Additional context

Add any other context about the problem here.

Checklist

Don't forget to go through the checklist to make sure the issue is created properly:

dikhan commented 5 years ago

Fixed as part of https://github.com/dikhan/terraform-provider-openapi/pull/177