Skip to content

Commit 76f6b75

Browse files
committed
fix: only enforce org_id check for org level integrations
1 parent f163b53 commit 76f6b75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checks.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ check "non_empty_organization_id" {
33
// in a folder. In this case, google_project.selected[0].org_id will be empty whereas google_project.selected[0].folder_id
44
// will be non-empty. We'd need to ask the user to provide the organization_id in such cases.
55
assert {
6-
condition = local.organization_id != "" && local.integration_type == "ORGANIZATION"
6+
condition = var.organization_id != "" || var.integration_type == "PROJECT"
77
error_message = "No `organization_id` is provided and we failed to derive one. Please provide `organization_id`."
88
}
99
}

0 commit comments

Comments
 (0)