When no project id is specified, this fails with:
ERROR cinder sqlalchemy.exc.ArgumentError: Textual column
expression 'project_id' should be explicitly declared with
text('project_id'), or use column('project_id') for more specificity
Re-work the query to use column('project_id') to fix this.
This moves into the db layer so that cinder-manage doesn't need
to directly import sqlalchemy.
Closes-Bug: #2077643
Change-Id: I5ff068b01cce8a1ae8747b57b1785325c037cd68
216 B
216 B