TypeError error for insecure calls to sqlalchemy db api
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mistral |
Fix Released
|
Medium
|
Kevin Pouget |
Bug Description
Call to `db.v2.
```
Traceback (most recent call last):
File "mistral/
insecure=True)
File "mistral/
result = func(*args, **kw)
File "mistral/
return _get_collection
File "mistral/
query = (b.model_
File "mistral/
result = func(*args, **kw)
TypeError: model_query() got multiple values for keyword argument 'session'
```
Changed in mistral: | |
assignee: | nobody → Kevin Pouget (kpouget) |
Changed in mistral: | |
milestone: | none → rocky-1 |
Changed in mistral: | |
importance: | Undecided → Medium |
Reviewed: https:/ /review. openstack. org/560478 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=96f1f223e7a efe7f6ee84d7c31 99604bb31b2e0a
Committed: https:/
Submitter: Zuul
Branch: master
commit 96f1f223e7aefe7 f6ee84d7c319960 4bb31b2e0a
Author: Kevin Pouget <email address hidden>
Date: Wed Apr 11 17:41:11 2018 +0200
Fix call to model_query in sqlalchemy. api._get_ collection
Fix `columns` parameter in call to `model_query` when api._get_ collection called with insecure to
sqlalchemy.
true, and specific fields defined.
Change-Id: Ib46173d42d7947 75cfa302856cf97 03ce8549389
Closes-Bug: #1763068