예제 #1
0
파일: agents.py 프로젝트: 674009287/nova
    def delete(self, req, id):
        """Deletes an existing agent build."""
        context = req.environ['nova.context']
        authorize(context)

        try:
            db.agent_build_destroy(context, id)
        except exception.AgentBuildNotFound as ex:
            raise webob.exc.HTTPNotFound(explanation=ex.format_message())
예제 #2
0
    def delete(self, req, id):
        """Deletes an existing agent build."""
        context = req.environ['nova.context']
        authorize(context)

        try:
            db.agent_build_destroy(context, id)
        except exception.AgentBuildNotFound as ex:
            raise webob.exc.HTTPNotFound(explanation=ex.format_message())
예제 #3
0
파일: agent.py 프로젝트: Dynavisor/nova
 def destroy(self):
     db.agent_build_destroy(self._context, self.id)
예제 #4
0
파일: agent.py 프로젝트: AsherBond/nova
 def destroy(self, context):
     db.agent_build_destroy(context, self.id)
예제 #5
0
 def destroy(self, context):
     db.agent_build_destroy(context, self.id)
예제 #6
0
 def delete(self, os, architecture, hypervisor='xen'):
     """Deletes an existing agent build."""
     ctxt = context.get_admin_context()
     agent_build_ref = db.agent_build_get_by_triple(ctxt,
                               hypervisor, os, architecture)
     db.agent_build_destroy(ctxt, agent_build_ref['id'])
예제 #7
0
 def destroy(self):
     db.agent_build_destroy(self._context, self.id)