TypeError: __init__() got an unexpected keyword argument 'project' in Designate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Designate |
Fix Released
|
Undecided
|
Ben Nemec | ||
congress |
Fix Released
|
Critical
|
Unassigned | ||
masakari |
Fix Released
|
Undecided
|
Shilpa Devharakar | ||
oslo.context |
Fix Released
|
Critical
|
Ben Nemec |
Bug Description
It looks like the addition of 'project' to the to_dict function of the Context class[1] has broken Designate. The problem is that this adds a key to to_dict that isn't accepted by the constructor, and as a result Designate's simple from_dict[2] function fails with an unexpected keyword argument. An example of the error can be seen in [3].
Since oslo.context provides a from_dict function that seems to handle this correctly already, I think the correct thing to do here is just to remove the Designate override. That at least is getting it working for me locally.
1: https:/
2: https:/
3: http://
Changed in designate: | |
assignee: | nobody → Ben Nemec (bnemec) |
summary: |
- Renamed parameters broke designate + TypeError: __init__() got an unexpected keyword argument 'project' in + Designate |
Changed in congress: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Changed in oslo.context: | |
assignee: | Ben Nemec (bnemec) → Juan Antonio Osorio Robles (juan-osorio-robles) |
Changed in oslo.context: | |
status: | In Progress → Fix Released |
assignee: | Juan Antonio Osorio Robles (juan-osorio-robles) → Ben Nemec (bnemec) |
Changed in masakari: | |
assignee: | Ben Nemec (bnemec) → Shilpa Devharakar (shilpasd) |
Changed in masakari: | |
status: | In Progress → Fix Released |
Fix proposed to branch: master /review. openstack. org/509685
Review: https:/