Make bay, service and pod show call db directly

Change-Id: I49d87ab0cb32cd76e79a986f9f4cd340decc91f7
Jay Lau (Guangya Liu) 2015-01-02 04:45:04 -05:00 committed by Jay Lau
parent 5a72df3662
commit 493eeb8af2
1 changed files with 3 additions and 3 deletions

View File

@ -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