File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
modules/auxiliary/admin/ldap Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,8 @@ def action_update
509
509
new_configuration = load_local_template
510
510
511
511
operations = [ ]
512
- obj . each do |attribute , value |
512
+ obj . each do |symbol , value |
513
+ attribute = symbol . to_s
513
514
next if IGNORED_ATTRIBUTES . any? { |word | word . casecmp? ( attribute ) }
514
515
515
516
if new_configuration . keys . any? { |word | word . casecmp? ( attribute ) }
@@ -526,7 +527,7 @@ def action_update
526
527
527
528
new_configuration . each_key do |attribute |
528
529
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 ) }
530
531
531
532
operations << [ :add , attribute , new_configuration [ attribute ] ]
532
533
end
You can’t perform that action at this time.
0 commit comments