We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently all null values from Pulumi are treated as Nothing which is correct during preview, but incorrect during non-preview.
Nothing
Test case:
Index: examples/simple/src/lib.rs IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/examples/simple/src/lib.rs b/examples/simple/src/lib.rs --- a/examples/simple/src/lib.rs (revision 00e265730b313e9dcd331ec220c49f5844766964) +++ b/examples/simple/src/lib.rs (date 1727119217354) @@ -19,6 +19,9 @@ // Tests number mapping let number = random_string.min_upper.map(|i| i * 2); + // Optional values are deserialized as None + let keepers = random_string.keepers.map(|map| format!("Keepers: {map:?}")); + let val1 = Output::new(&1); let val2 = Output::new(&"abc".to_string()); @@ -34,5 +37,6 @@ add_export("number", &number); add_export("combined_string", &combined_string); add_export("combined_2_string", &combined_2_string); + add_export("keepers", &keepers); Ok(()) }
keepers output is not shown
keepers
The text was updated successfully, but these errors were encountered:
Better optional values handling (#430)
5907c6b
Closes #414
Successfully merging a pull request may close this issue.
Currently all null values from Pulumi are treated as
Nothing
which is correct during preview, but incorrect during non-preview.Test case:
keepers
output is not shownThe text was updated successfully, but these errors were encountered: