mirror of
https://github.com/ansible/awx.git
synced 2026-03-08 21:19:26 -02:30
do not check for migration version if not migrating
This commit is contained in:
@@ -63,7 +63,7 @@ def _log_database_error():
|
||||
try:
|
||||
yield
|
||||
except (ProgrammingError, OperationalError) as e:
|
||||
if get_tower_migration_version() < '310':
|
||||
if 'migrate' in sys.argv and get_tower_migration_version() < '310':
|
||||
logger.info('Using default settings until version 3.1 migration.')
|
||||
else:
|
||||
logger.warning('Database settings are not available, using defaults (%s)', e, exc_info=True)
|
||||
|
||||
Reference in New Issue
Block a user