From 543a87ac88354de3a0511345027a9f7c64ebe8bb Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 6 Feb 2020 06:37:05 -0500 Subject: [PATCH] fix error message on initial awx-manage migrate --- awx/conf/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/conf/settings.py b/awx/conf/settings.py index fa4af6da59..5f72bdcf95 100644 --- a/awx/conf/settings.py +++ b/awx/conf/settings.py @@ -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.')