mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
module(apt_key): don't catch SystemExit
If we do this, we risk outputting two JSON payloads, which will be unparsable.
This commit is contained in:
parent
27199dc219
commit
8f2580fc98
1 changed files with 1 additions and 1 deletions
|
@ -138,7 +138,7 @@ def download_key(module, url):
|
||||||
module.fail_json("error connecting to download key from url")
|
module.fail_json("error connecting to download key from url")
|
||||||
data = connection.read()
|
data = connection.read()
|
||||||
return data
|
return data
|
||||||
except:
|
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", traceback=format_exc())
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue