pulumi / pulumi-terraform-bridge

A library allowing providers built with the Terraform Plugin SDK to be bridged into Pulumi.
Apache License 2.0
184 stars 42 forks source link

Provider2 instance state fallback #2002

Closed VenelinMartinov closed 1 month ago

VenelinMartinov commented 1 month ago

As @t0yv0 suggested, this adds a recovery to the state conversion in provider2. This is picked up from makeResourceRawConfigClassic in the original sdkv2 implementation.

It seems to work for some cases, might be a good idea to merge?

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.87%. Comparing base (a427483) to head (8796220).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2002 +/- ## ========================================== + Coverage 60.85% 60.87% +0.02% ========================================== Files 332 332 Lines 44754 44756 +2 ========================================== + Hits 27234 27246 +12 + Misses 15994 15988 -6 + Partials 1526 1522 -4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.