saltstack/salt — pull request #3935 by russellballestrini (2013-03-05 06:31:17+00:00)
Title: Correcting a logic error where for loop would continue

instead of returning when the catalina_home is found.

Additionally using glob.glob('/usr/local/tomcat*') might be
dangerous because it could return invalid catalina_homes::

>>> import glob
>>> glob.glob( '/usr/share/tomcat*' )
['/usr/share/tomcat7-root', '/usr/share/tomcat7']

modified: tomcat.py