← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1494617] Re: Different behavior in API and DB when Nova list with limit set to 0

 

*** This bug is a duplicate of bug 794730 ***
    https://bugs.launchpad.net/bugs/794730

** This bug has been marked a duplicate of bug 794730
   API doesn't specify what limit=0 means

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1494617

Title:
  Different behavior in API and DB when Nova list with limit set to 0

Status in OpenStack Compute (nova):
  New

Bug description:
  According to the code:
  http://git.openstack.org/cgit/openstack/nova/tree/nova/api/openstack/common.py#n206

  when limit = 0, it should apply as max_limit, but currently, in:
  http://git.openstack.org/cgit/openstack/nova/tree/nova/db/sqlalchemy/api.py#n1930

  we directly return [], this is quite different with comment in the api
  code.

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1494617/+subscriptions


References