brief-apartment-69928
08/01/2019, 10:35 PMDiagnostics:
pulumi:pulumi:Stack (project-factory-prod):
<coroutine object get_project at 0x7f761ffaf448>
./__main__.py:61: RuntimeWarning: coroutine 'get_project' was never awaited
a.prj_create()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
bitter-oil-46081
08/02/2019, 2:00 AMget_project
that you defined?high-translator-22614
08/02/2019, 2:19 AMget_*
stuff is async based (coroutines)async def get_project(self):
return await gcp.organizations.get_project(project_id=self.project_name)
Now, the weird thing is that this should still work, assuming the return value got handed to pulumibrief-apartment-69928
08/02/2019, 5:35 PMloop = asyncio.get_running_loop()
proj_exist = loop.create_task(self.get_project())
print(proj_exist)
if proj_exist:
`stop pulumi run`
high-translator-22614
08/02/2019, 7:02 PMbitter-oil-46081
08/02/2019, 9:02 PMget_
methods complete synchronously: https://github.com/pulumi/pulumi/pull/3019 is the core work in our runtime to support this and we'll be pushing changes out to our providers over the next few days to consume this. Once this is complete, these calls should behave like you'd like.high-translator-22614
08/02/2019, 9:11 PM