1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Output URL for debugging

This commit is contained in:
Sven Schliesing 2014-04-01 13:55:58 +02:00
parent 57acf104c6
commit c8e80b2aa4

View file

@ -148,7 +148,7 @@ def download_key(module, url):
rsp, info = fetch_url(module, url)
return rsp.read()
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):
cmd = "apt-key adv --keyserver %s --recv %s" % (keyserver, key_id)