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

[BugFix: Issue #236] Don't update the state if the import fails #237

Closed dikhan closed 4 years ago

dikhan commented 4 years ago

What problem does this Pull Request solve?

Please link to the issue number here: #236

Type of change

What type of change does your code introduce to the provider? Please put an x (w/o heading/trailing white spaces) in the boxes that apply:

Checklist

Please put an x (w/o heading/trailing white spaces) in the boxes that apply:

Checklist for Admins

codecov[bot] commented 4 years ago

Codecov Report

Merging #237 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #237   +/-   ##
=======================================
  Coverage   90.77%   90.78%           
=======================================
  Files          56       56           
  Lines        3394     3396    +2     
=======================================
+ Hits         3081     3083    +2     
  Misses        206      206           
  Partials      107      107           
Impacted Files Coverage Δ
openapi/resource_factory.go 92.15% <100.00%> (+0.03%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update aee1ba2...9397953. Read the comment docs.