If a bulk create happened with a single item, the pecan code would
return back to the user the singular version of the resource in the
body. For example, to bulk create many security group rules, the user
would give in the body of the request the json with a parent key of
"security-group-rules" with a value of a list of json security group
rules. If this list is of length one, then after the creation of the
one security group rule, the API would return back to the client
"security-group-rule" as the parent key. This is not how the legacy
wsgi layer behaved. The behavior is expected when nova creates security
group rules by calling the neutron API through its deprecated security
groups API.
Reviewed: https:/ /review. openstack. org/389398 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=64252405c47 80f09b376655b1b 439543290a2f65
Committed: https:/
Submitter: Jenkins
Branch: master
commit 64252405c4780f0 9b376655b1b4395 43290a2f65
Author: Brandon Logan <email address hidden>
Date: Thu Oct 20 19:03:08 2016 -0500
Pecan: Bulk create with one item returns plural
If a bulk create happened with a single item, the pecan code would group-rules" with a value of a list of json security group group-rule" as the parent key. This is not how the legacy
return back to the user the singular version of the resource in the
body. For example, to bulk create many security group rules, the user
would give in the body of the request the json with a parent key of
"security-
rules. If this list is of length one, then after the creation of the
one security group rule, the API would return back to the client
"security-
wsgi layer behaved. The behavior is expected when nova creates security
group rules by calling the neutron API through its deprecated security
groups API.
Change-Id: I8757630403e4d4 86cd3c8dd6f041e 9ee326ba3b4
Closes-Bug: #1633671