fix error message on initial awx-manage migrate

This commit is contained in:
Ryan Petrello 2020-02-06 06:37:05 -05:00
parent fd027f87a9
commit 543a87ac88
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -87,7 +87,7 @@ def _ctit_db_wrapper(trans_safe=False):
yield
except DBError:
if trans_safe:
if 'check_migrations' not in sys.argv:
if 'migrate' not in sys.argv and 'check_migrations' not in sys.argv:
logger.exception('Database settings are not available, using defaults.')
else:
logger.exception('Error modifying something related to database settings.')