mirror of https://github.com/pulumi/pulumi.git
d312b5560a
The hand-rolled invoke code in the Kubernetes Python SDK is not expecting empty dicts for empty results. Instead, it has code that checks for `None`. In general, we want to keep the behavior of returning empty dicts rather than `None` for empty results, as this aligns with the behavior of other SDKs (Node.js and Go) and is actually the original behavior of the Python SDK (it regressed unintentionally in the v2 timeframe). We're updating the Kubernetes Python SDK to be resilient to either getting an empty dict or `None` for invokes with empty results. Additionally, to maintain compat with older versions of the Kubernetes Python SDK, we'll special case those invoke tokens. When an invoke's result is empty and the token is one of the Kubernete's function tokens, we'll return `None` rather than the empty dict. Fixes #14508 |
||
---|---|---|
.. | ||
automation | ||
data/lazy_import_test | ||
langhost | ||
provider | ||
runtime | ||
__init__.py | ||
conftest.py | ||
helpers.py | ||
test_broken_dynamic_provider.py | ||
test_config.py | ||
test_invoke.py | ||
test_monitor_termination.py | ||
test_next_serialize.py | ||
test_output.py | ||
test_resource.py | ||
test_runtime_to_json.py | ||
test_stack_reference.py | ||
test_stack_registers_outputs.py | ||
test_translate_output_properties.py | ||
test_types_input_type.py | ||
test_types_input_type_types.py | ||
test_types_output_type.py | ||
test_types_resource_types.py | ||
test_urn.py | ||
test_utils.py |