sparse-intern-71089
05/02/2021, 4:13 AMred-match-15116
05/02/2021, 4:24 AMred-match-15116
05/02/2021, 4:29 AMMy code is a bit more complicated with some concatenations between Outputs and strI imagine this is the part that’s actually going wrong, so we’ll need an actual example of what you’re doing and the error you’re getting.
stale-hamburger-8953
05/02/2021, 4:43 AMred-match-15116
05/02/2021, 4:52 AMwouldn’t this fail with sth like “project id not a string, it is an Output object”Yeah that’s fair, You can’t use an Output as the
resource_name
for another resource. But you can use it for every other argument in a resource.
Specifically:
projects.Service(userProject.project_id, <-- this will not work
disable_dependent_services=True,
project=userProject.project_id, <-- this works fine
service="<http://cloudapis.googleapis.com|cloudapis.googleapis.com>")
modern-animal-54928
05/02/2021, 11:54 AMTypeError: Expected resource name to be a string
I am not sure what can I do here... Do you have some tips to share ?red-match-15116
05/02/2021, 5:15 PMService
a different name. Is that not an option?modern-animal-54928
05/02/2021, 5:39 PMmodern-animal-54928
05/02/2021, 5:40 PM