Commit c3e3a95
authored
AAP-51883 Fix unsafe assumption about org content type (ansible#814)
This fixes a server error
This is due to, specifically, the registration of the `Team` model in
galaxy_ng with no parent model.
https://github.com/ansible/galaxy_ng/blob/5fce949deb374e1755029f7d9a5a6d109d031e69/galaxy_ng/app/models/__init__.py#L50-L59
Knowing that the parent model is null, you can read the traceback in a
way that makes sense. The variable `team_parent_model` gets a value of
`None`, which is 100% unexpected.
At the end, `model` was _intended_ to be passed, but it has a value of
`None`, which the method interprets as not being provided.1 parent 5a52b1c commit c3e3a95
1 file changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
191 | 196 | | |
192 | 197 | | |
193 | 198 | | |
| |||
0 commit comments