Replace use of log.warn with log.warning
LOG.warn is deprecated in Python3 and was used only here in karbor, this patch updates it to LOG.warning. Change-Id: Icad346bb6fd3efcac2f42fead1327585297f2f96
This commit is contained in:
parent
a3fcd6d6be
commit
d8187d7e5f
|
@ -336,7 +336,8 @@ class ProtectionManager(manager.Manager):
|
||||||
checkpoint_dict = checkpoint.to_dict()
|
checkpoint_dict = checkpoint.to_dict()
|
||||||
if not context.is_admin and (
|
if not context.is_admin and (
|
||||||
context.project_id != checkpoint_dict['project_id']):
|
context.project_id != checkpoint_dict['project_id']):
|
||||||
LOG.warn("Delete checkpoint(%s) is not allowed." % checkpoint_id)
|
LOG.warning("Delete checkpoint(%s) is not allowed.",
|
||||||
|
checkpoint_id)
|
||||||
raise exception.DeleteCheckpointNotAllowed(
|
raise exception.DeleteCheckpointNotAllowed(
|
||||||
checkpoint_id=checkpoint_id)
|
checkpoint_id=checkpoint_id)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue