Commit 9eb3f877 by Michael DeHaan

Merge pull request #6468 from philpep/fix_apt_key

apt_key: Fix traceback when key_id format is invalid
parents 9c189ed7 92e8e59c
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment