← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1255035] Re: Incorrect argument while retrieving quota with project and user in DbQuotaDriver

 

** Changed in: nova
       Status: Fix Committed => Fix Released

-- 
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/1255035

Title:
  Incorrect argument while retrieving quota with project and user in
  DbQuotaDriver

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  The `user_id` passed in db.quota_get() should be a keyword argument.

  The prototype of quota_get():

  def quota_get(context, project_id, resource, user_id=None)

  But In DbQuotaDriver::get_by_project_and_user():

  return db.quota_get(context, project_id, user_id, resource)

  which should be:

  return db.quota_get(context, project_id, resource, user_id=user_id)

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