Skip to content

Commit 166479f

Browse files
authored
Merge pull request #20388 from jheysel-r7/fix/regression/ad_cs_cert_template
Fix the UPDATE Action in the ad_cs_cert_template Module
2 parents 04c7945 + e328a8f commit 166479f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/auxiliary/admin/ldap/ad_cs_cert_template.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,8 @@ def action_update
509509
new_configuration = load_local_template
510510

511511
operations = []
512-
obj.each do |attribute, value|
512+
obj.each do |symbol, value|
513+
attribute = symbol.to_s
513514
next if IGNORED_ATTRIBUTES.any? { |word| word.casecmp?(attribute) }
514515

515516
if new_configuration.keys.any? { |word| word.casecmp?(attribute) }
@@ -526,7 +527,7 @@ def action_update
526527

527528
new_configuration.each_key do |attribute|
528529
next if IGNORED_ATTRIBUTES.any? { |word| word.casecmp?(attribute) }
529-
next if obj.attribute_names.any? { |i| i.casecmp?(attribute) }
530+
next if obj.attribute_names.any? { |i| i.to_s.casecmp?(attribute) }
530531

531532
operations << [:add, attribute, new_configuration[attribute]]
532533
end

0 commit comments

Comments
 (0)