From 9bfedc76f928aaa603f2f386e81de6bddf6eb806 Mon Sep 17 00:00:00 2001 From: Kiall Mac Innes Date: Fri, 3 May 2013 14:31:42 +0100 Subject: [PATCH] Correct diagnostics URI Change-Id: Ibe2723617268a4df7a7de7d0b46d7aa621a8d4ab --- monikerclient/v1/diagnostics.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/monikerclient/v1/diagnostics.py b/monikerclient/v1/diagnostics.py index 30c0c44..f51f5f2 100644 --- a/monikerclient/v1/diagnostics.py +++ b/monikerclient/v1/diagnostics.py @@ -16,15 +16,12 @@ from monikerclient.v1.base import Controller -# NOTE(kiall): The /../ is an awful hack.. But keystone only gives us a -# versioned endpoint. Maybe we should make the diags calls part -# of v1? class DiagnosticsController(Controller): def ping(self, service, host): """ Ping a service on a given host """ - response = self.client.get('/../diagnostics/ping/%s/%s' % + response = self.client.get('/diagnostics/ping/%s/%s' % (service, host)) return response.json @@ -33,7 +30,7 @@ class DiagnosticsController(Controller): """ Sync Everything """ - response = self.client.post('/../diagnostics/sync/all') + response = self.client.post('/diagnostics/sync/all') return response.json @@ -41,7 +38,7 @@ class DiagnosticsController(Controller): """ Sync Single Domain """ - response = self.client.post('/../diagnostics/sync/domain/%s' % + response = self.client.post('/diagnostics/sync/domain/%s' % domain_id) return response.json @@ -50,7 +47,7 @@ class DiagnosticsController(Controller): """ Sync Single Record """ - response = self.client.post('/../diagnostics/sync/record/%s/%s' % + response = self.client.post('/diagnostics/sync/record/%s/%s' % (domain_id, record_id)) return response.json