Skip to content

Commit a7e5b45

Browse files
committed
chore: adding default values
1 parent c7551c3 commit a7e5b45

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ terraform {
1717
}
1818

1919
data "azurerm_management_group" "replicator_custom_role_scope" {
20-
name = var.replicator_custom_role_scope
20+
count = var.replicator_enabled || var.replicator_rg_enabled ? 1 : 0
21+
name = var.replicator_custom_role_scope
2122
}
2223

2324
data "azurerm_management_group" "replicator_assignment_scopes" {

0 commit comments

Comments
 (0)