Only downcase() if $keyid is a string.
Only downcase() if $keyid is a string.

If the key IDs are not quoted in Hiera's YAML, then all base 10 digit
key IDs will be cast as integers rather than strings. downcase() doesn't
like that.

I've explicitly stringified all key IDs in Hiera, but let's
invoke Postel's law here.

wcooley/puppet-rpm_gpgkey