def mod_watch(name, url='http://localhost:8080/manager', timeout=180):

    msg = __salt__['tomcat.reload'](name, url, timeout)
    result = msg.startswith('OK')

    ret = {'name': name,
       'result': result,
       'changes': {name: result},
       'comment': msg
       }

    return ret
The tomcat watcher function.
dataset/ETHPy150Open saltstack/salt/salt/states/tomcat.py/mod_watch