From 493eeb8af28bf4743edcaef03cf443b1dbea478a Mon Sep 17 00:00:00 2001 From: "Jay Lau (Guangya Liu)" Date: Fri, 2 Jan 2015 04:45:04 -0500 Subject: [PATCH] Make bay, service and pod show call db directly Change-Id: I49d87ab0cb32cd76e79a986f9f4cd340decc91f7 --- magnum/conductor/api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/magnum/conductor/api.py b/magnum/conductor/api.py index f80478e8c9..542b655026 100644 --- a/magnum/conductor/api.py +++ b/magnum/conductor/api.py @@ -55,7 +55,7 @@ class API(rpc_service.API): return self._call('bay_delete', ctxt=ctxt, uuid=uuid) def bay_show(self, ctxt, uuid): - return self._call('bay_show', ctxt=ctxt, uuid=uuid) + return objects.Bay.get_by_uuid(ctxt, uuid) # Service Operations @@ -71,7 +71,7 @@ class API(rpc_service.API): return self._call('service_delete', ctxt=ctxt, service=service) def service_show(self, ctxt, uuid): - return self._call('service_show', ctxt=ctxt, uuid=uuid) + return objects.Service.get_by_uuid(ctxt, uuid) # Pod Operations @@ -85,7 +85,7 @@ class API(rpc_service.API): return self._call('pod_delete', ctxt=ctxt, pod=pod) def pod_show(self, ctxt, uuid): - return self._call('pod_show', ctxt=ctxt, uuid=uuid) + return objects.Pod.get_by_uuid(ctxt, uuid) # ReplicationController Operations