mesos.py 文件源码

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

项目:mesos-autoscaler 作者: prudhvitella 项目源码 文件源码
def __requests_put(self, uri, data, headers):
        if self.mesos_user:
            # print "User " + self.mesos_user + "Pass " + self.mesos_pass
            # print "URI " + self.mesos_host + uri
            response = requests.put(self.mesos_host + uri, data,
                                    headers=headers,
                                    verify=False,
                                    auth=(self.mesos_user,
                                          self.mesos_pass))
        else:
            response = requests.put(self.mesos_host + uri,
                                    data,
                                    headers=headers,
                                    verify=False)
            # print "Response:" + str(response)
        return response.json()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号