From a566ba7713077c4f34531444cb810f3c9b88af0c Mon Sep 17 00:00:00 2001 From: LiuNanke Date: Tue, 29 Dec 2015 12:39:36 +0800 Subject: [PATCH] Python 3 deprecated the logger.warn method in favor of warning Python 3 deprecated the logger.warn method, see: https://docs.python.org/3/library/logging.html#logging.warning, so we prefer to use warning to avoid DeprecationWarning. Closes-Bug: #1529913 Change-Id: Ief1ebbbc8198d2d7a01a5ec41b61d8b6d466da1f --- openstack_dashboard/api/glance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/api/glance.py b/openstack_dashboard/api/glance.py index c4740ec3ac..a5ed6fdd73 100644 --- a/openstack_dashboard/api/glance.py +++ b/openstack_dashboard/api/glance.py @@ -136,7 +136,7 @@ def image_update(request, image_id, **kwargs): msg = (('Failed to remove temporary image file ' '%(file)s (%(e)s)') % dict(file=filename, e=str(e))) - LOG.warn(msg) + LOG.warning(msg) def image_create(request, **kwargs):