Addressed TODO to change project_id to tenant_id
Now that bug 1695954 is addressed allowing the QoS policy API to accept the 'tenant_id' filter this has been amended in the qos panel code. For further details on the bug requiring project_id to be used temporarily, see https://bugs.launchpad.net/neutron/+bug/1695954. Change-Id: If7920a8826c9cc8dc6ba7a6f056e6e9fa34df677
This commit is contained in:
parent
995c1225b6
commit
74d75daffd
@ -297,12 +297,8 @@ class QoSPolicies(generic.View):
|
||||
The listing result is an object with property "items".
|
||||
Each item is a qos policy.
|
||||
"""
|
||||
# TODO(amotoki):
|
||||
# project_id=request.user.project_id should be changed to
|
||||
# tenant_id=request.user.project_id once bug 1695954 is
|
||||
# addressed to allow tenant_id to be accepted.
|
||||
result = api.neutron.policy_list(request,
|
||||
project_id=request.user.project_id)
|
||||
tenant_id=request.user.project_id)
|
||||
return {'items': [p.to_dict() for p in result]}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user