Replace LOG.warn with LOG.warning
logging.warn is deprecated in Python 3.[1] [1] https://docs.python.org/3/library/logging.html#logging.warning Change-Id: I9812372ca32497e7806a4b365aef2670ef7ad9af
This commit is contained in:
parent
c9488cff61
commit
52994e3782
@ -209,8 +209,8 @@ class MonitorNeutronAgentsDaemon(Daemon):
|
||||
return False
|
||||
|
||||
if not self.is_same_host(crm_no_1_node):
|
||||
LOG.warn('Only the first crm node %s could reschedule. '
|
||||
% crm_no_1_node)
|
||||
LOG.warning('Only the first crm node %s could reschedule. '
|
||||
% crm_no_1_node)
|
||||
return False
|
||||
return True
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user