diff --git a/modules/core_project_factory/scripts/preconditions/preconditions.py b/modules/core_project_factory/scripts/preconditions/preconditions.py index 5e8635ea..1cd1dd0a 100755 --- a/modules/core_project_factory/scripts/preconditions/preconditions.py +++ b/modules/core_project_factory/scripts/preconditions/preconditions.py @@ -160,7 +160,10 @@ def validate(self, credentials): ) body = {"permissions": self.permissions} - resource = "folders/" + self.folder_id + if self.folder_id.startswith("folders/"): + resource = self.folder_id + else: + resource = "folders/" + self.folder_id request = service.folders().testIamPermissions( resource=resource,