-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not panic when the type of a property in resource outputs doesn't match #643
Comments
Ideally we'd have as complete as possible test coverage for this change, since this requires refactoring the Converter/Deserializer, and I'm always worried about changing code there ;) |
This sounds important to me, should we add to the epic? |
@Frassle had a very interesting idea pulumi/pulumi#7329 (comment) |
The straightforward approach would be to proceed with
This would throw a better exception. Without special care, this would still make the program fail even if unused though because we have the machinery to note exceptions in every Output. That would have to be special cased, either ignoring exceptions of ProviderTypeMismatchException or having a flag to disable the machinery in this call of |
I think .NET does something like the former option? |
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
- do not panic when the type of property in resource outputs doesn't match the one from the wire Fixes #643
Hello!
Issue details
The motivation behind it can be found in:
pulumi/pulumi#7329
There is also a PR implementing it for C#.
pulumi/pulumi#8286
The fix proceed with a null / default value and a warning in place of an error. This makes some programs succeed.
Consider implementing the same here.
Affected area/feature
The text was updated successfully, but these errors were encountered: