def slack_finished(): try: host_finished(env.host) if did_send_slack_start and len(hosts_to_use) == 0: slack_url_helper.message_slack("{} finished".format(env.rfc)) except: print "*** We couldn't post the RFC finished message to slack. Not critical, but you will need to post the RFC info to rfc_and_maint-tasks"
def slack_start(): global did_send_slack_start try: list_hosts() if "rfc" in env and env.rfc is not "" and not did_send_slack_start: did_send_slack_start = True slack_url_helper.message_slack("{} starting".format(env.rfc)) except: print "*** We couldn't post the RFC started message to slack. Not critical, but you will need to post the RFC info to rfc_and_maint-tasks"