mirror of
https://github.com/ansible/awx.git
synced 2026-01-21 14:38:00 -03:30
Reword errors when version metadata does not match or is absent
This commit is contained in:
parent
8b46bc3829
commit
3764bd2303
@ -22,11 +22,10 @@ logger = logging.getLogger('awx.main.models.jobs')
|
||||
try:
|
||||
fd = open("/var/lib/awx/.tower_version", "r")
|
||||
if fd.read().strip() != tower_version:
|
||||
logger.error("Tower Versions don't match, potential invalid setup detected")
|
||||
raise Exception("Tower Versions don't match, potential invalid setup detected")
|
||||
raise Exception()
|
||||
except Exception:
|
||||
logger.error("Missing tower version metadata at /var/lib/awx/.tower_version")
|
||||
raise Exception("Missing tower version metadata at /var/lib/awx/.tower_version")
|
||||
logger.error("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.")
|
||||
raise Exception("Missing or incorrect metadata for Tower version. Ensure Tower was installed using the setup playbook.")
|
||||
|
||||
# Return the default Django WSGI application.
|
||||
from django.core.wsgi import get_wsgi_application
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user