mirror of
https://github.com/philippdieter/puppet-ldapquery.git
synced 2025-10-13 12:55:48 +00:00
Do explicit string conversion on values too
`to_s` the values too (like the attribute in line 129). This prevents the copious logging of lines like ``` [puppetserver] Puppet Ssh_authorized_key[arjen-ssh-rsa]['user']['key']['type'] contains a Net::BER::BerIdentifiedString value. It will be converted to the String 'ssh-rsa' ``` for each and every piece of data that gets used from the `ldapquery` results.
This commit is contained in:
parent
8861c30311
commit
d13aec89dd
@ -129,7 +129,7 @@ module PuppetX
|
||||
attr = attribute.to_s
|
||||
value_data = []
|
||||
Array(values).flatten.each do |v|
|
||||
value_data << v.chomp
|
||||
value_data << v.to_s.chomp
|
||||
end
|
||||
entry_data[attr] = value_data
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user