Skip to content

Commit

Permalink
chore: clarify DiffConfig code (#1793)
Browse files Browse the repository at this point in the history
This change does not affect the code behavior but makes it clear that
AWS Native never cascade-replaces resources in DiffConfig.
  • Loading branch information
t0yv0 authored Nov 5, 2024
1 parent 2962615 commit c2f11ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions provider/pkg/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,14 @@ func (p *cfnProvider) DiffConfig(ctx context.Context, req *pulumirpc.DiffRequest
return &pulumirpc.DiffResponse{Changes: pulumirpc.DiffResponse_DIFF_NONE}, nil
}

var diffs, replaces []string
var diffs []string
for _, k := range diff.Keys() {
diffs = append(diffs, string(k))
}

return &pulumirpc.DiffResponse{
Changes: pulumirpc.DiffResponse_DIFF_SOME,
Diffs: diffs,
Replaces: replaces,
Changes: pulumirpc.DiffResponse_DIFF_SOME,
Diffs: diffs,
}, nil
}

Expand Down

0 comments on commit c2f11ba

Please sign in to comment.