summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2017-06-19 21:38:08 +0530
committerJohn R Barker <john@johnrbarker.com>2017-06-19 17:08:08 +0100
commita4ebde15161c3bbb9f1a7dcfde31b57836dfb4ad (patch)
tree5aace5005249a0b198d73d65bd85888ce223f14c
parent4ab4a6766ee8b2b71c8e7fc3513828a031770565 (diff)
downloadansible-a4ebde15161c3bbb9f1a7dcfde31b57836dfb4ad.tar.gz
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 <akasurde@redhat.com>
-rw-r--r--lib/ansible/modules/notification/flowdock.py2
1 files changed, 1 insertions, 1 deletions
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' ]: