MODULES-780 Don't blow up on unicode characters.

This commit is contained in:
Arkady Smirnov 2014-07-09 14:06:40 +03:00
parent 841ed61ba2
commit f4ea10f4d8

View file

@ -31,7 +31,7 @@ Puppet::Type.type(:apt_key).provide(:apt_key) do
else
key_output = apt_key('list')
end
key_array = apt_key('list').split("\n").collect do |line|
key_array = key_output.split("\n").collect do |line|
line_hash = key_line_hash(line)
next unless line_hash
expired = false