def __requests_put(self, uri, data, headers):
if self.marathon_user:
# print "User " + self.marathon_user + "Pass " + self.marathon_pass
# print "URI " + self.marathon_host + uri
response = requests.put(self.marathon_host + uri, data,
headers=headers,
verify=False,
auth=(self.marathon_user,
self.marathon_pass))
else:
response = requests.put(self.marathon_host + uri,
data,
headers=headers,
verify=False)
# print "Response:" + str(response)
return response
评论列表
文章目录