summaryrefslogtreecommitdiffstats
path: root/nova/utils.py
diff options
context:
space:
mode:
authorMauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>2013-06-04 00:49:08 -0400
committerMauro S. M. Rodrigues <maurosr@linux.vnet.ibm.com>2013-06-13 11:36:42 -0400
commit90da2c677976b3e9e96bd68703a8b9d5ba347ce3 (patch)
tree8e08c5a305c0283687b93849d6b72f11ff49edf5 /nova/utils.py
parent77595f8e08a61507ad5c7c990651fd4f8131c150 (diff)
downloadnova-90da2c677976b3e9e96bd68703a8b9d5ba347ce3.tar.gz
nova-90da2c677976b3e9e96bd68703a8b9d5ba347ce3.tar.xz
nova-90da2c677976b3e9e96bd68703a8b9d5ba347ce3.zip
Change resource links when url has no project id
This patch allow response body to be look like the request url. So if a project_id is passed the resource links on the response will also have a project_id, and in the case of api-v3 where project_id are no longer present in the url the response will not have it either. Complements bp v3-api-remove-project-id. Also fix two minor issues on the unit tests, which were breaking with this change: - When doing ServersViewBuilderTest there was no api version specified. - ServersControllerTest was duplicating api version on the application url. Change-Id: I872332ef56b4b6e99fedb43833ad45e8e654f44f
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions