From f121c6f54348fb516c85d44037da52447f7e5d30 Mon Sep 17 00:00:00 2001 From: Pavlo Shchelokovskyy Date: Tue, 12 Jun 2018 11:23:07 +0000 Subject: [PATCH] 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 b2fa516a47c2278238df92ef9d7846decdce98e0) --- heat/api/versions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/heat/api/versions.py b/heat/api/versions.py index f326d09086..6f9c9e288b 100644 --- a/heat/api/versions.py +++ b/heat/api/versions.py @@ -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