wrong description for "resource_limit" in limits API

Bug #1751755 reported by TommyLike
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Low
wangxiyuan

Bug Description

"resource_limit" is described as array type in the table, but the example below shows it's an integer.

```
{
    "links": {
        "self": "http://10.3.150.25/identity/v3/limits",
        "previous": null,
        "next": null
    },
    "limits": [
        {
            "resource_name": "volume",
            "region_id": null,
            "links": {
                "self": "http://10.3.150.25/identity/v3/limits/25a04c7a065c430590881c646cdcdd58"
            },
            "service_id": "9408080f1970482aa0e38bc2d4ea34b7",
            "project_id": "3a705b9f56bb439381b43c4fe59dccce",
            "id": "25a04c7a065c430590881c646cdcdd58",
            "resource_limit": 11
        },
        {
            "resource_name": "snapshot",
            "region_id": "RegionOne",
            "links": {
                "self": "http://10.3.150.25/identity/v3/limits/3229b3849f584faea483d6851f7aab05"
            },
            "service_id": "9408080f1970482aa0e38bc2d4ea34b7",
            "project_id": "3a705b9f56bb439381b43c4fe59dccce",
            "id": "3229b3849f584faea483d6851f7aab05",
            "resource_limit": 5
        }
    ]
}
```

Revision history for this message
Gage Hugo (gagehugo) wrote :
Changed in keystone:
status: New → Confirmed
importance: Undecided → Low
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/548231

Changed in keystone:
assignee: nobody → wangxiyuan (wangxiyuan)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/548231
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=f0c0634a9285f7a13c9c9b6bfdfc9ca063cddd5b
Submitter: Zuul
Branch: master

commit f0c0634a9285f7a13c9c9b6bfdfc9ca063cddd5b
Author: wangxiyuan <email address hidden>
Date: Tue Feb 27 11:19:57 2018 +0000

    Api-ref: fix resource_limit format

    the resource_limit type is integer, not array.

    Change-Id: I62fa0a82092945e7d5e866b27eb66a9a6a4e7d86
    Closes-bug: #1751755

Changed in keystone:
status: In Progress → Fix Released
tags: added: documentation
Changed in keystone:
milestone: none → rocky-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/keystone 14.0.0.0b1

This issue was fixed in the openstack/keystone 14.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.