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
This commit is contained in:
Pavlo Shchelokovskyy 2018-06-12 11:23:07 +00:00
parent 80f68801d1
commit b2fa516a47
1 changed files with 1 additions and 1 deletions

View File

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