Use application_url in API version document

this handles the possible vhost in Heat API path correctly
(like http://mucloud.com/heat-api) contrary to host_url.

Change-Id: I2f4dbb7d98fbdf5314d5771309919c5b25a72f94
Story: 2002531
Task: 22075
(cherry picked from commit b2fa516a47)
This commit is contained in:
Pavlo Shchelokovskyy 2018-06-12 11:23:07 +00:00 committed by Vlad Gusev
parent 01e6439281
commit f121c6f543
1 changed files with 1 additions and 1 deletions

View File

@ -49,4 +49,4 @@ class Controller(object):
return response
def get_href(self, req):
return "%s/v1/" % req.host_url
return "%s/v1/" % req.application_url