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

apt_key: Fix traceback when key_id format is invalid

Signed-off-by: Philippe Pepiot <phil@philpep.org>
This commit is contained in:
Philippe Pepiot 2014-03-13 15:28:37 +01:00 committed by Philippe PEPIOT
parent d1753046e0
commit 92e8e59cad

View file

@ -199,7 +199,7 @@ def main():
if key_id.startswith('0x'):
key_id = key_id[2:]
except ValueError:
module.fail_json("Invalid key_id")
module.fail_json(msg="Invalid key_id", id=key_id)
# FIXME: I think we have a common facility for this, if not, want
check_missing_binaries(module)