We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 715b11f commit ac4b04bCopy full SHA for ac4b04b
modules/auxiliary/admin/ldap/bad_successor.rb
@@ -228,9 +228,11 @@ def query_account(account_name)
228
229
attrs_to_copy.each do |key, value|
230
if value.is_a?(Array)
231
- print_status("#{key} => [#{value.map(&:inspect).join(', ')}]")
232
- else
233
- print_status("#{key} => #{value.inspect}")
+ if value.length == 1
+ print_status("#{key} => #{value.first.inspect}")
+ else
234
+ print_status("#{key} => [#{value.map(&:inspect).join(', ')}]")
235
+ end
236
end
237
238
0 commit comments