Closed leone145 closed 5 years ago
Second suggestion would be to use services().get instead of services().list
enabled = []
for r in self.REQUIRED_APIS:
request = service.services().get(
name="projects/" + self.project_id + "/services/" + r
)
response = request.execute()
if response['state'] == "ENABLED":
enabled.append(r)
Thanks, good catch. We'd be happy to look at a PR for either fix.
Fixed by #220.
During preconditions check, if the seed project has a large number of APIs enabled, the python precondition check cannot page and preconditions fail. Suggest increasing the pageSize option as below.
Error observed that led to the discovery. ': exit status 1. Output: [ { "type": "Required APIs on service account project", "name": "projects/project-abc123", "satisfied": [ "cloudresourcemanager.googleapis.com", "appengine.googleapis.com", "cloudbilling.googleapis.com", "admin.googleapis.com" ], "unsatisfied": [ "iam.googleapis.com" ] },