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:
parent
88ea2dd2be
commit
12ff05bc5e
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user