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>
pull/21305/head
Abhijeet Kasurde 8 years ago committed by John R Barker
parent 4ab4a6766e
commit a4ebde1516

@ -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' ]:

Loading…
Cancel
Save