From 92e8e59cad67eb3e0ead601fc17eafcb9508c206 Mon Sep 17 00:00:00 2001 From: Philippe Pepiot Date: Thu, 13 Mar 2014 15:28:37 +0100 Subject: [PATCH] apt_key: Fix traceback when key_id format is invalid Signed-off-by: Philippe Pepiot --- library/packaging/apt_key | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/packaging/apt_key b/library/packaging/apt_key index e071833c3be..57cc48c967c 100644 --- a/library/packaging/apt_key +++ b/library/packaging/apt_key @@ -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)