sparse-intern-71089
08/01/2019, 10:35 PMbitter-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)high-translator-22614
08/02/2019, 2:20 AMhigh-translator-22614
08/02/2019, 2:21 AMasync 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 pulumihigh-translator-22614
08/02/2019, 2:22 AMbrief-apartment-69928
08/02/2019, 5:35 PMbrief-apartment-69928
08/02/2019, 5:36 PMloop = asyncio.get_running_loop()
proj_exist = loop.create_task(self.get_project())
print(proj_exist)
brief-apartment-69928
08/02/2019, 5:39 PMbrief-apartment-69928
08/02/2019, 5:41 PMif proj_exist:
`stop pulumi run`
high-translator-22614
08/02/2019, 7:02 PMhigh-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