@@ -160,14 +160,14 @@ data "ise_device_admin_condition" "device_admin_condition" {
160
160
locals {
161
161
device_admin_policy_sets = [
162
162
for ps in try (local. ise . device_administration . policy_sets , []) : {
163
- condition_type = try (ps. condition . type , local. defaults . ise . device_administration . policy_sets . condition . type , null )
164
- condition_is_negate = try (ps. condition . is_negate , local. defaults . ise . device_administration . policy_sets . condition . is_negate , null )
165
- condition_attribute_name = try (ps. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . condition . attribute_name , null )
166
- condition_attribute_value = try (ps. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . condition . attribute_value , null )
167
- condition_dictionary_name = try (ps. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . condition . dictionary_name , null )
168
- condition_dictionary_value = try (ps. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . condition . dictionary_value , null )
163
+ condition_type = ps . name == " Default " ? null : try (ps. condition . type , local. defaults . ise . device_administration . policy_sets . condition . type , null )
164
+ condition_is_negate = ps . name == " Default " ? null : try (ps. condition . is_negate , local. defaults . ise . device_administration . policy_sets . condition . is_negate , null )
165
+ condition_attribute_name = ps . name == " Default " ? null : try (ps. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . condition . attribute_name , null )
166
+ condition_attribute_value = ps . name == " Default " ? null : try (ps. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . condition . attribute_value , null )
167
+ condition_dictionary_name = ps . name == " Default " ? null : try (ps. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . condition . dictionary_name , null )
168
+ condition_dictionary_value = ps . name == " Default " ? null : try (ps. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . condition . dictionary_value , null )
169
169
condition_id = contains (local. known_conditions_device_admin , try (ps. condition . name , " " )) ? ise_device_admin_condition . device_admin_condition [ps . condition . name ]. id : try (data. ise_device_admin_condition . device_admin_condition [ps . condition . name ]. id , null )
170
- condition_operator = try (ps. condition . operator , local. defaults . ise . device_administration . policy_sets . condition . operator , null )
170
+ condition_operator = ps . name == " Default " ? null : try (ps. condition . operator , local. defaults . ise . device_administration . policy_sets . condition . operator , null )
171
171
description = try (ps. description , local. defaults . ise . device_administration . policy_sets . description , null )
172
172
is_proxy = try (ps. is_proxy , local. defaults . ise . device_administration . policy_sets . is_proxy )
173
173
name = ps . name
@@ -671,14 +671,14 @@ locals {
671
671
rank = try (rule. rank , local. defaults . ise . device_administration . policy_sets . authentication_rules . rank , null )
672
672
default = rule . name == " Default" ? true : null
673
673
state = try (rule. state , local. defaults . ise . device_administration . policy_sets . authentication_rules . state , null )
674
- condition_type = try (rule. condition . type , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . type , null )
674
+ condition_type = rule . name == " Default " ? null : try (rule. condition . type , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . type , null )
675
675
condition_id = contains (local. known_conditions_device_admin , try (rule. condition . name , " " )) ? ise_device_admin_condition . device_admin_condition [rule . condition . name ]. id : try (data. ise_device_admin_condition . device_admin_condition [rule . condition . name ]. id , null )
676
- condition_is_negate = try (rule. condition . is_negate , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . is_negate , null )
677
- condition_attribute_name = try (rule. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . attribute_name , null )
678
- condition_attribute_value = try (rule. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . attribute_value , null )
679
- condition_dictionary_name = try (rule. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . dictionary_name , null )
680
- condition_dictionary_value = try (rule. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . dictionary_value , null )
681
- condition_operator = try (rule. condition . operator , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . operator , null )
676
+ condition_is_negate = rule . name == " Default " ? null : try (rule. condition . is_negate , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . is_negate , null )
677
+ condition_attribute_name = rule . name == " Default " ? null : try (rule. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . attribute_name , null )
678
+ condition_attribute_value = rule . name == " Default " ? null : try (rule. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . attribute_value , null )
679
+ condition_dictionary_name = rule . name == " Default " ? null : try (rule. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . dictionary_name , null )
680
+ condition_dictionary_value = rule . name == " Default " ? null : try (rule. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . dictionary_value , null )
681
+ condition_operator = rule . name == " Default " ? null : try (rule. condition . operator , local. defaults . ise . device_administration . policy_sets . authentication_rules . condition . operator , null )
682
682
identity_source_name = try (rule. identity_source_name , local. defaults . ise . device_administration . policy_sets . authentication_rules . identity_source_name , null )
683
683
if_auth_fail = try (rule. if_auth_fail , local. defaults . ise . device_administration . policy_sets . authentication_rules . if_auth_fail , null )
684
684
if_process_fail = try (rule. if_process_fail , local. defaults . ise . device_administration . policy_sets . authentication_rules . if_process_fail , null )
@@ -1210,14 +1210,14 @@ locals {
1210
1210
rank = try (rule. rank , local. defaults . ise . device_administration . policy_sets . authorization_rules . rank , null )
1211
1211
default = rule . name == " Default" ? true : null
1212
1212
state = try (rule. state , local. defaults . ise . device_administration . policy_sets . authorization_rules . state , null )
1213
- condition_type = try (rule. condition . type , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . type , null )
1213
+ condition_type = rule . name == " Default " ? null : try (rule. condition . type , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . type , null )
1214
1214
condition_id = contains (local. known_conditions_device_admin , try (rule. condition . name , " " )) ? ise_device_admin_condition . device_admin_condition [rule . condition . name ]. id : try (data. ise_device_admin_condition . device_admin_condition [rule . condition . name ]. id , null )
1215
- condition_is_negate = try (rule. condition . is_negate , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . is_negate , null )
1216
- condition_attribute_name = try (rule. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . attribute_name , null )
1217
- condition_attribute_value = try (rule. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . attribute_value , null )
1218
- condition_dictionary_name = try (rule. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . dictionary_name , null )
1219
- condition_dictionary_value = try (rule. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . dictionary_value , null )
1220
- condition_operator = try (rule. condition . operator , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . operator , null )
1215
+ condition_is_negate = rule . name == " Default " ? null : try (rule. condition . is_negate , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . is_negate , null )
1216
+ condition_attribute_name = rule . name == " Default " ? null : try (rule. condition . attribute_name , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . attribute_name , null )
1217
+ condition_attribute_value = rule . name == " Default " ? null : try (rule. condition . attribute_value , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . attribute_value , null )
1218
+ condition_dictionary_name = rule . name == " Default " ? null : try (rule. condition . dictionary_name , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . dictionary_name , null )
1219
+ condition_dictionary_value = rule . name == " Default " ? null : try (rule. condition . dictionary_value , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . dictionary_value , null )
1220
+ condition_operator = rule . name == " Default " ? null : try (rule. condition . operator , local. defaults . ise . device_administration . policy_sets . authorization_rules . condition . operator , null )
1221
1221
profile = try (rule. profile , local. defaults . ise . device_administration . policy_sets . authorization_rules . profile , null )
1222
1222
command_sets = try (rule. command_sets , local. defaults . ise . device_administration . policy_sets . authorization_rules . command_sets , null )
1223
1223
children = try ([for i in rule . condition . children : {
0 commit comments