diff --git a/ise_device_admin.tf b/ise_device_admin.tf index 4c30c73..e8a6ad9 100644 --- a/ise_device_admin.tf +++ b/ise_device_admin.tf @@ -555,8 +555,8 @@ resource "ise_device_admin_authorization_global_exception_rule" "device_admin_au } resource "ise_device_admin_authorization_global_exception_rule_update_rank" "device_admin_authorization_global_exception_rule_update_rank" { - for_each = { for rule in local.device_admin_authorization_global_exception_rules_with_ranks : rule.key => rule } + for_each = { for rule in local.device_admin_authorization_global_exception_rules_with_ranks : rule.name => rule } rule_id = ise_device_admin_authorization_global_exception_rule.device_admin_authorization_global_exception_rule[each.value.name].id - rank = each.value.rank + rank = each.value.generated_rank } diff --git a/ise_network_access.tf b/ise_network_access.tf index c2b7653..93cf3ef 100644 --- a/ise_network_access.tf +++ b/ise_network_access.tf @@ -656,8 +656,8 @@ resource "ise_network_access_authorization_global_exception_rule" "network_acces } resource "ise_network_access_authorization_global_exception_rule_update_rank" "network_access_authorization_global_exception_rule_update_rank" { - for_each = { for rule in local.network_access_authorization_global_exception_rules_with_ranks : rule.key => rule } + for_each = { for rule in local.network_access_authorization_global_exception_rules_with_ranks : rule.name => rule } rule_id = ise_network_access_authorization_global_exception_rule.network_access_authorization_global_exception_rule[each.value.name].id - rank = each.value.rank + rank = each.value.generated_rank }