https://pulumi.com logo
#python
Title
l

little-river-49422

02/17/2019, 2:25 PM
i suppose you need to do roughly the same, define a async function and call your
get
inside of it with
await
p

proud-artist-4864

02/18/2019, 7:03 AM
Thanks man, this worked. Clumsy though. And it seems to only work inside another pulumi call, I assume because the other pulumi calls are also deferred/async as part of the engine. For example, calling that additional wrapper outside of a pulumi API still results in a coroutine object being returned. Which means that any decision making on the result of the call has to also be encapsulated in an async def.
l

little-river-49422

02/18/2019, 7:48 AM
sorry, I'm not much of a python developer, I can barely navigate my way through. but I suppose you are correct
3 Views