Using LOG.warning replace LOG.warn

This patch replaces LOG.warn by LOG.warning on
https://github.com/openstack/horizon/blob/master/openstack_dashboard/api/keystone.py#L222
to avoid DeprecationWarning.

Change-Id: I8cd9ea6778b356c3b1f4e0c6e95feb096792c58d
Closes-Bug: #1562731
This commit is contained in:
Nguyen Phuong An 2016-03-28 16:23:43 +07:00
parent 09148f68d6
commit d6491516d9

View File

@ -219,7 +219,7 @@ def domain_lookup(request):
domains = domain_list(request)
return dict((d.id, d.name) for d in domains)
except Exception:
LOG.warn("Pure project admin doesn't have a domain token")
LOG.warning("Pure project admin doesn't have a domain token")
return None
else:
domain = get_default_domain(request)