Open lee-butn opened 1 year ago
Hi Lee, could you provide a concrete program that demonstrates this issue? It would help me rule out user error and quickly get to the bottom of the issue. You may be reading the number into a string value. For example, are you calling Config.Get
or Config.GetInt32
? 🙏🏻 Thank you very much! I appreciate you bringing this issue to our attention!
What happened?
Try to read an integer number from pulumi config and getting follow error:
The Solution is use Newtonsoft.Json instead System.Text.Json in https://github.com/pulumi/pulumi-dotnet/blob/main/sdk/Pulumi/Config.cs
Expected Behavior
Read an integer from config
Steps to reproduce
Give config with integer value
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).