Skip to content

Commit

Permalink
Merge branch 'master' into delivery
Browse files Browse the repository at this point in the history
  • Loading branch information
guohongze committed Jan 23, 2018
2 parents 97a6ded + d19a847 commit 471117f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions install/client/adminset_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,13 @@ def parser_disk_info(diskdata):

def post_data(url, data):
try:
r = requests.session()
r.keep_alive = False
post_result = r.post(url, data)
if post_result.text:
print post_result.text
r = requests.post(url, data)
if r.text:
print r.text
else:
print("Server return http status code: {0}".format(post_result.status_code))
except StandardError as post_info:
print post_info
print("Server return http status code: {0}".format(r.status_code))
except StandardError as msg:
print msg
return True


Expand Down

0 comments on commit 471117f

Please sign in to comment.