Skip to content

raw state: null check strings and numbers - #3286

Open
pgavlin wants to merge 1 commit into
mainfrom
pgavlin/null-check-tf-values
Open

raw state: null check strings and numbers#3286
pgavlin wants to merge 1 commit into
mainfrom
pgavlin/null-check-tf-values

Conversation

@pgavlin

@pgavlin pgavlin commented Dec 22, 2025

Copy link
Copy Markdown
Member

cty string and number values need to be null-checked prior to calling
AsString or AsBigFloat, respectively. If the cty values are null,
these functions will panic.

Fixes #3278.

cty string and number values need to be null-checked prior to calling
`AsString` or `AsBigFloat`, respectively. If the cty values are null,
these functions will panic.

Fixes #3278.
@pgavlin
pgavlin marked this pull request as ready for review December 22, 2025 18:53
@pgavlin
pgavlin requested a review from corymhall December 22, 2025 18:53
@codecov

codecov Bot commented Dec 22, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.76%. Comparing base (75725c2) to head (7b81e38).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3286   +/-   ##
=======================================
  Coverage   69.75%   69.76%           
=======================================
  Files         338      338           
  Lines       36456    36456           
=======================================
+ Hits        25430    25432    +2     
+ Misses       9296     9295    -1     
+ Partials     1730     1729    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@corymhall

Copy link
Copy Markdown
Member

@pgavlin it looks like this PR removes the panic, but now we get the error

preview failed: step application failed: recovered raw state does not byte-for-byte match the original raw state

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

Successfully merging this pull request may close these issues.

pulumi import "panic" for aws:autoscaling/group:Group on AWS provider v7.14.0

2 participants