redfish.py 文件源码

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

项目:deb-python-proliantutils 作者: openstack 项目源码 文件源码
def _get_sushy_system(self, system_id):
        """Get the sushy system for system_id

        :param system_id: The identity of the System resource
        :returns: the Sushy system instance
        :raises: IloError
        """
        system_url = parse.urljoin(self._sushy.get_system_collection_path(),
                                   system_id)
        try:
            return self._sushy.get_system(system_url)
        except sushy.exceptions.SushyError as e:
            msg = (self._('The Redfish System "%(system)s" was not found. '
                          'Error %(error)s') %
                   {'system': system_id, 'error': str(e)})
            LOG.debug(msg)
            raise exception.IloError(msg)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号