Addressed TODO to change project_id to tenant_id
Now that bug 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
@@ -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]}
