[API] keyerror for 'name' and 'description' when node composition
Bug #1677046 reported by
Lin Yang
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Valence |
Fix Released
|
High
|
Unassigned |
Bug Description
When user didn't specify proper 'name' and 'description' field when compose node, api will raise key error but it is user friendly, like below shows.
>curl -vvvv -X POST -H "Content-Type: application/json" -d '{"Name":"test"}' http://
{
"code": "KeyError",
"detail": "'name'",
"request_id": "00000000-
"status": 500,
"title": "KeyError"
}
This is caused by nodes controller don't check whether those keys exists,
https:/
It should convert keyerror to a user-friendly message.
Changed in openstack-valence: | |
assignee: | nobody → Lin Yang (lin-a-yang) |
importance: | Undecided → High |
Changed in openstack-valence: | |
assignee: | Lin Yang (lin-a-yang) → Anusha (anusha-iiitm) |
Changed in openstack-valence: | |
assignee: | Anusha (anusha-iiitm) → nobody |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/451105
Review: https:/