base.py 文件源码

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

项目:ironic-tempest-plugin 作者: openstack 项目源码 文件源码
def _put_request(self, resource, put_object):
        """Update specified object with JSON-patch."""
        uri = self._get_uri(resource)
        put_body = json.dumps(put_object)

        resp, body = self.put(uri, body=put_body)
        self.expected_success([http_client.ACCEPTED, http_client.NO_CONTENT],
                              resp.status)
        return resp, body
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号