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

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>
This commit is contained in:
Abhijeet Kasurde 2017-06-19 21:38:08 +05:30 committed by John R Barker
parent 4ab4a6766e
commit a4ebde1516

View file

@ -156,7 +156,7 @@ def main():
else: else:
params['external_user_name'] = module.params["external_user_name"] params['external_user_name'] = module.params["external_user_name"]
elif type == 'chat': 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 # required params for the 'inbox' type
for item in [ 'from_address', 'source', 'subject' ]: for item in [ 'from_address', 'source', 'subject' ]: