Use LOG.warning instead of deprecated LOG.warn

The LOG.warn method is deprecated[1] and the LOG.warning method should
be used instead.

[1] https://docs.python.org/3/library/logging.html#logging.warning

Change-Id: Idfe1b7d7dce1dcf1799865c24ffb2c43f423e3ad
This commit is contained in:
Takashi Kajinami 2021-11-29 15:35:09 +09:00
parent 88ea2dd2be
commit 12ff05bc5e

View File

@ -107,8 +107,8 @@ class PortsTest(base.BaseTempestTestCase):
if port is not None:
break
except Exception as e:
LOG.warn('Failed to create Port, using Fixed_IP:{}, '
'the Error was:{}'.format(ip, e))
LOG.warning('Failed to create Port, using Fixed_IP:{}, '
'the Error was:{}'.format(ip, e))
fip, server = self._create_instance_with_port(port)
self.check_connectivity(fip[0]['floating_ip_address'],
CONF.validation.image_ssh_user,