interface.py 文件源码

python
阅读 32 收藏 0 点赞 0 评论 0

项目:son-mano-framework 作者: sonata-nfv 项目源码 文件源码
def delete(self, plugin_uuid=None):
        LOG.debug("DELETE plugin: %r" % plugin_uuid)
        try:
            p = model.Plugin.objects.get(uuid=plugin_uuid)
            # send lifecycle stop event to plugin
            PM.send_stop_notification(p)
            # TODO ensure that record is deleted even if plugin does not deregister itself (use a timeout?)
            return {}, 200
        except DoesNotExist as e:
            LOG.error("Lookup error: %r" % plugin_uuid)
            return {}, 404
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号