mirror of https://github.com/pulumi/pulumi.git
360ffc7884
In #17275 I changed `invoke_async` to return `InvokeResult`, however this variant of the invoke should always unwrap `value` from the `InvokeResult`. Reverted a changed test in #17275 thinking it was syntactic, however it was not since it unwrapped the value in the test whereas the unwrapping should have happened in the function implementation of `invoke_async` ```diff async def await_invoke_async(): value = await invoke_async( "test:index:MyFunction", props={"value": 41, "value2": get_value2()} ) return value["value"] ``` Fixes #17347 |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
test_invoke.py |