1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

silence the noisy error that's printed w/ awx-manage check_migrations

This commit is contained in:
Ryan Petrello 2018-10-16 08:32:48 -04:00
parent ce9da4edb7
commit 6e4f3efc4b
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777

View File

@ -126,6 +126,7 @@ def _ctit_db_wrapper(trans_safe=False):
bottom_stack.close() bottom_stack.close()
# Log the combined stack # Log the combined stack
if trans_safe: if trans_safe:
if 'check_migrations' not in sys.argv:
logger.warning('Database settings are not available, using defaults, error:\n{}'.format(tb_string)) logger.warning('Database settings are not available, using defaults, error:\n{}'.format(tb_string))
else: else:
logger.error('Error modifying something related to database settings.\n{}'.format(tb_string)) logger.error('Error modifying something related to database settings.\n{}'.format(tb_string))