File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ locals {
1111 check_old_management_group_ids_param = var. is_organizational && length (var. management_group_ids ) > 0
1212
1313 # fetch the GCP root org
14- root_org = var. is_organizational ? [data . google_organization . org [0 ]. org_id ] : []
14+ root_org = var. is_organizational ? [data . google_organization . org [0 ]. name ] : []
1515}
1616
1717check "validate_org_configuration_params" {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ resource "sysdig_secure_organization" "google_organization" {
3030 count = var. is_organizational ? 1 : 0
3131
3232 management_account_id = sysdig_secure_cloud_auth_account. google_account . id
33- organizational_unit_ids = var. management_group_ids
33+ organizational_unit_ids = local . check_old_management_group_ids_param ? var. management_group_ids : []
3434 organization_root_id = local. root_org [0 ]
3535 included_organizational_groups = local. check_old_management_group_ids_param ? [] : var. include_folders
3636 excluded_organizational_groups = local. check_old_management_group_ids_param ? [] : var. exclude_folders
You can’t perform that action at this time.
0 commit comments