base.py 文件源码

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

项目:ironic-tempest-plugin 作者: openstack 项目源码 文件源码
def _show_request(self,
                      resource,
                      uuid=None,
                      permanent=False,
                      **kwargs):
        """Gets a specific object of the specified type.

        :param uuid: Unique identifier of the object in UUID format.
        :returns: Serialized object as a dictionary.

        """
        if 'uri' in kwargs:
            uri = kwargs['uri']
        else:
            uri = self._get_uri(resource, uuid=uuid, permanent=permanent)
        resp, body = self.get(uri)
        self.expected_success(http_client.OK, resp.status)

        return resp, self.deserialize(body)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号