From a4ebde15161c3bbb9f1a7dcfde31b57836dfb4ad Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 19 Jun 2017 21:38:08 +0530 Subject: [PATCH] Correct failure message in flowdock (#25844) As per documentation and code, external_user_name is required parameter is case of type 'chat'. Fix corrects error message displayed to user. Signed-off-by: Abhijeet Kasurde --- lib/ansible/modules/notification/flowdock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/notification/flowdock.py b/lib/ansible/modules/notification/flowdock.py index d6624c311a..8dd95badac 100644 --- a/lib/ansible/modules/notification/flowdock.py +++ b/lib/ansible/modules/notification/flowdock.py @@ -156,7 +156,7 @@ def main(): else: params['external_user_name'] = module.params["external_user_name"] elif type == 'chat': - module.fail_json(msg="%s is required for the 'inbox' type" % item) + module.fail_json(msg="external_user_name is required for the 'chat' type") # required params for the 'inbox' type for item in [ 'from_address', 'source', 'subject' ]: