Skip to content

Commit

Permalink
Input map may be nil (#9304)
Browse files Browse the repository at this point in the history
* Input map may be nil

* Add to CHANGELOG
  • Loading branch information
Frassle committed Mar 27, 2022
1 parent c3e084d commit 766a4d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG_PENDING.md
Expand Up @@ -7,3 +7,6 @@

- [codegen/go] - Fix Go SDK function output to check for errors
[pulumi-aws#1872](https://github.com/pulumi/pulumi-aws/issues/1872)

- [cli/engine] - Fix a panic due to `Check` returning nil while using update plans.
[#9304](https://github.com/pulumi/pulumi/pull/9304)
1 change: 0 additions & 1 deletion pkg/resource/deploy/plan.go
Expand Up @@ -476,7 +476,6 @@ func (rp *ResourcePlan) checkGoal(
programGoal *resource.Goal) error {

contract.Assert(programGoal != nil)
contract.Assert(newInputs != nil)
// rp.Goal may be nil, but if it isn't Type and Name should match
contract.Assert(rp.Goal == nil || rp.Goal.Type == programGoal.Type)
contract.Assert(rp.Goal == nil || rp.Goal.Name == programGoal.Name)
Expand Down

0 comments on commit 766a4d2

Please sign in to comment.