emulator.py 文件源码

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

项目:Redfish-Interface-Emulator 作者: DMTF 项目源码 文件源码
def get_configuration(obj, path):
        """
        Helper function to follow the given path starting with the given object

        Arguments:
            obj  - Beginning object to start searching down.  obj should have a get_resource()
            path - Path of object to get

        """

        try:
            config = obj.get_resource(path)
        except (IndexError, AttributeError, TypeError, AssertionError, KeyError) as e:
            traceback.print_exc()
            raise PathError("Resource not found: " + str(e.message))
        print (config)
        return config

#
# If DELETE /redfish/v1/reset, then reset the resource manager
#
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号