Fix condition mistake for limit argument check
Bug #1494169 reported by
Li Yuanyuan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
In Progress
|
Undecided
|
Li Yuanyuan |
Bug Description
in file glance/
468 if limit < 0:
469 msg = _("limit param must be positive")
470 raise webob.exc.
I think ignore the zero condition and according to #http://
explain (Requests a specified page size of returned items from the query. Returns a number of items up to the specified limit value. Use the limit parameter to make an initial limited request and use the ID of the last-seen item from the response as the marker parameter value in a subsequent limited request. )
I think Line468 it should change to 'if limit <= 0:'
Changed in glance: | |
assignee: | nobody → Sreeram Vancheeswaran (sreeram-vancheeswaran) |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/222064
Review: https:/