From 0f79b61b9319589ea2ae170da6744482db8da813 Mon Sep 17 00:00:00 2001
From: Pino de Candia <giuseppe.decandia@gmail.com>
Date: Mon, 12 Mar 2018 20:35:02 +0000
Subject: [PATCH] Use Tatu API v1 in passthrough.py

Change-Id: Ie605907b17153a5e455e9e35a5dc584dc17d2d41
Signed-off-by: Pino de Candia <giuseppe.decandia@gmail.com>
---
 tatudashboard/rest_api/passthrough.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/tatudashboard/rest_api/passthrough.py b/tatudashboard/rest_api/passthrough.py
index 0208bf2..751dbb9 100644
--- a/tatudashboard/rest_api/passthrough.py
+++ b/tatudashboard/rest_api/passthrough.py
@@ -41,9 +41,10 @@ def _passthrough_request(request_method, url,
         verify = False
 
     service_url = _get_service_url(request, 'ssh')
-    request_url = '{}{}'.format(
+    request_url = '{}{}{}'.format(
         service_url,
-        url if service_url.endswith('/') else ('/' + url)
+        'v1/' if service_url.endswith('/') else '/v1/',
+        url
     )
 
     response = request_method(