]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fall back on empty path if prefix is missing
authorarmando-migliaccio <armamig@gmail.com>
Thu, 2 Jul 2015 02:46:16 +0000 (19:46 -0700)
committerarmando-migliaccio <armamig@gmail.com>
Fri, 3 Jul 2015 00:05:27 +0000 (17:05 -0700)
commit9aaa2befdece5036fb8a6c3bdee6290d3658745d
tree6def28bc601231c7ef30bbb073ac77936772b009
parentcaa70a113abf2a57f1a97c15a2be24c98ee75b44
Fall back on empty path if prefix is missing

A missing entry causes a KeyError that leads the server to blow up during
startup. We can fallback on an empty path (like some services do), in case
the prefix is not specified.

Furthermore, we can be declarative with this property, the same way we are
with properties like aliases, bulk support, etc.

Change-Id: I58a9b90a39d434f4808264aeb6f9ee5aceff7fbd
neutron/api/v2/resource_helper.py