dgolja / golja-gnupg

Puppet module for managing GnuPG package and public keys
Apache License 2.0
13 stars 46 forks source link

The executed command is now displayed when failed #33

Open SamK opened 5 years ago

SamK commented 5 years ago

This commit shows what command has been executed when adding a key fails. This makes debugging network issues easier (especially when dealing with corporate proxies providing self signed certificates).

Current behaviour:

Error: /Stage[main]/Main/Node[skrieg-dev]/Gnupg_key[hashicorp]/ensure: change from absent to present failed: Error while importing key 51852D87348FFC4C from https://keybase.io/hashicorp/pgp_keys.asc?fingerprint=91a6e7f85d05c65630bef18951852d87348ffc4c:
}

What this PR does:

Error: /Stage[main]/Main/Node[skrieg-dev]/Gnupg_key[hashicorp]/ensure: change from absent to present failed: Error while importing key 51852D87348FFC4C from https://keybase.io/hashicorp/pgp_keys.asc?fingerprint=91a6e7f85d05c65630bef18951852d87348ffc4c:
Execution of 'wget -O- https://keybase.io/hashicorp/pgp_keys.asc?fingerprint=91a6e7f85d05c65630bef18951852d87348ffc4c | gpg --import' returned 2: