Commit 83343971 authored by chengaoxing's avatar chengaoxing

update : update

parent 8b573ea3
...@@ -76,7 +76,7 @@ class arcgis(object): ...@@ -76,7 +76,7 @@ class arcgis(object):
} }
uri = "https://%s:7443/arcgis/portaladmin/createNewSite" % self.hostname uri = "https://%s:7443/arcgis/portaladmin/createNewSite" % self.hostname
print(uri)
try: try:
response = requests.post( response = requests.post(
uri, uri,
...@@ -90,6 +90,8 @@ class arcgis(object): ...@@ -90,6 +90,8 @@ class arcgis(object):
if err is not None: if err is not None:
print("Some error happended when create the new site: \n %s \n"%(err)) print("Some error happended when create the new site: \n %s \n"%(err))
return False return False
else:
print("Response : %s" % (response.text))
except Exception as e: except Exception as e:
print("Error when post the requrest with reason :%s"%e) print("Error when post the requrest with reason :%s"%e)
timeout = True timeout = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment