[placement] Allow both /placement and /placement/ to work
When mounted under a prefix (such as /placement) the service was
only returning the home document at /placement/ not /placement. In
the context of having a prefix, we'd generally like the latter to
work and for '/' to work when there is no prefix. This allows both.
Note that this doesn't make /placement/resource_providers/ work, and
we don't want that.
Reviewed: https:/ /review. openstack. org/374870 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=f21e7e33298 a359f54e4eb5c70 89a6a4f13537ee
Committed: https:/
Submitter: Jenkins
Branch: master
commit f21e7e33298a359 f54e4eb5c7089a6 a4f13537ee
Author: Chris Dent <email address hidden>
Date: Thu Sep 22 14:40:45 2016 +0000
[placement] Allow both /placement and /placement/ to work
When mounted under a prefix (such as /placement) the service was
only returning the home document at /placement/ not /placement. In
the context of having a prefix, we'd generally like the latter to
work and for '/' to work when there is no prefix. This allows both.
Note that this doesn't make /placement/ resource_ providers/ work, and
we don't want that.
Change-Id: I0ac92bf9982227 d5f4915175182e5 230aeb039b4
Closes-Bug: #1626490