Fix up modules that have python24 syntax error

This commit is contained in:
Matt Martz 2015-05-08 16:36:15 -05:00 committed by Matt Clay
commit 8bd5757720
17 changed files with 104 additions and 58 deletions

View file

@ -141,9 +141,9 @@ def build_payload_for_slack(module, text, channel, username, icon_url, icon_emoj
else:
payload = dict(attachments=[dict(text=text, color=color)])
if channel is not None:
if (channel[0] == '#') or (channel[0] == '@')
if (channel[0] == '#') or (channel[0] == '@'):
payload['channel'] = channel
else
else:
payload['channel'] = '#'+channel
if username is not None:
payload['username'] = username