Merge "Use LOG.warning instead of deprecated LOG.warn"

This commit is contained in:
Zuul 2022-08-02 06:18:17 +00:00 committed by Gerrit Code Review
commit 5d3d66b5ee
1 changed files with 2 additions and 2 deletions

View File

@ -63,8 +63,8 @@ def load_tests(loader, tests, pattern):
keystoneauth1.exceptions.discovery.DiscoveryFailure,
keystoneauth1.exceptions.connection.UnknownConnectionError,
keystoneauth1.exceptions.connection.ConnectFailure):
LOG.warn("Keystone auth exception: %s: %s" % (sys.exc_info()[0],
sys.exc_info()[1]))
LOG.warning("Keystone auth exception: %s: %s" %
(sys.exc_info()[0], sys.exc_info()[1]))
# Clear the auth_url, as there is no point in tempest trying
# to authenticate later with mis-configured or unreachable endpoint
conf.auth_url = None