Browse Source

Merge "Fix invalid JSON generated by quota details" into stable/victoria

changes/24/783224/1
Zuul 2 months ago
committed by Gerrit Code Review
parent
commit
4aca589204
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      neutron/objects/quota.py

+ 4
- 1
neutron/objects/quota.py View File

@ -16,6 +16,7 @@ from neutron_lib.objects import common_types
from oslo_versionedobjects import fields as obj_fields
import sqlalchemy as sa
from sqlalchemy import sql
from sqlalchemy import types as sqltypes
from neutron.db.quota import models
from neutron.objects import base
@ -90,7 +91,9 @@ class Reservation(base.NeutronDbObject):
resv_query = context.session.query(
models.ResourceDelta.resource,
models.Reservation.expiration,
sql.func.sum(models.ResourceDelta.amount)).join(
sql.func.cast(
sql.func.sum(models.ResourceDelta.amount),
sqltypes.Integer)).join(
models.Reservation)
if expired:
exp_expr = (models.Reservation.expiration < now)


Loading…
Cancel
Save