hiera-gpg icon indicating copy to clipboard operation
hiera-gpg copied to clipboard

Fix when using key_dir config

Open amartinj opened this issue 11 years ago • 2 comments

When key_dir setting is used in gpg hiera section, an exception is thrown because what is supposed to be a string is an array instead. Type check added

amartinj avatar May 28 '13 11:05 amartinj

hi, Could you elaborate on this? Why would key_dir be an array?

crayfishx avatar Feb 03 '14 11:02 crayfishx

I mean, gnupghome is an array, so you have to get the first item of it. I added the condition in order to keep it working in case a string is received.

amartinj avatar Feb 03 '14 12:02 amartinj