saltstack/salt — pull request #15666 by rbjorklin (2014-09-10 20:11:22+00:00)
Title: Fixed tomcat.fullversion on Ubuntu in salt/modules/tomcat.py, issue 13456

Somebody else already fixed the password/username not being picked up from grains/pillars in this issue: https://github.com/saltstack/salt/issues/13456 once this has been merged the issue should be resolved.

Taking the last entry from glob.glob('/usr/share/tomcat*') will fail if a user has installed the tomcat-manager which is needed for the salt tomcat module.

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