root.py 文件源码

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

项目:valence 作者: openstack 项目源码 文件源码
def check_url(url):
        # The url will be routed to PODMProxy resource if it didn't match
        # others. So filter out these incorrect url.
        # Only support proxy request of below podm API
        resource = url.split("/")[0]
        filterext = ["Chassis", "Services", "Managers", "Systems",
                     "EventService", "Nodes", "EthernetSwitches"]
        if resource not in filterext:
            flask.abort(http_client.NOT_FOUND)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号