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:
Arjen Zonneveld 2022-10-06 12:01:46 +02:00
parent 8861c30311
commit d13aec89dd

View File

@ -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