Example #1
0
 def delete_dummy(self, context, id):
     try:
         svc_type_id = self.dummys[id]['service_type']
         del self.dummys[id]
         self.svctype_mgr.decrease_service_type_refcount(
             context, svc_type_id)
     except KeyError:
         raise exceptions.NotFound()
Example #2
0
 def get_dummy(self, context, id, fields):
     try:
         return self.dummys[id]
     except KeyError:
         raise exceptions.NotFound()