コード例 #1
0
ファイル: admin.py プロジェクト: wendy-king/x7_venv
    def delete(self, req, id):
        context = req.environ['engine.context']
        self.compute_api.ensure_default_security_group(context)

        LOG.audit(_("Delete security group %s"), id, context=context)
        db.security_group_destroy(context, id)

        return exc.HTTPAccepted()
コード例 #2
0
ファイル: admin.py プロジェクト: wendy-king/x7_venv
    def delete(self, req, id):
        context = req.environ["engine.context"]
        self.compute_api.ensure_default_security_group(context)

        LOG.audit(_("Delete security group %s"), id, context=context)
        db.security_group_destroy(context, id)

        return exc.HTTPAccepted()
コード例 #3
0
    def delete(self, req, id):
        """Delete a security group."""
        context = req.environ['engine.context']
        security_group = self._get_security_group(context, id)
        LOG.audit(_("Delete security group %s"), id, context=context)
        db.security_group_destroy(context, security_group.id)

        return webob.Response(status_int=202)