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:
parent
09148f68d6
commit
d6491516d9
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user