mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-12 00:54:22 -07:00
Merge pull request #6793 from muffl0n/patch-4
apt_key: Output URL for debugging
This commit is contained in:
commit
b4c500634d
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ def download_key(module, url):
|
||||||
rsp, info = fetch_url(module, url)
|
rsp, info = fetch_url(module, url)
|
||||||
return rsp.read()
|
return rsp.read()
|
||||||
except Exception:
|
except Exception:
|
||||||
module.fail_json(msg="error getting key id from url", traceback=format_exc())
|
module.fail_json(msg="error getting key id from url: %s" % url, traceback=format_exc())
|
||||||
|
|
||||||
def import_key(module, keyserver, key_id):
|
def import_key(module, keyserver, key_id):
|
||||||
cmd = "apt-key adv --keyserver %s --recv %s" % (keyserver, key_id)
|
cmd = "apt-key adv --keyserver %s --recv %s" % (keyserver, key_id)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue