Explorar o código

更新 'ppctl.py'

robert %!s(int64=5) %!d(string=hai) anos
pai
achega
f5ce731dfb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      ppctl.py

+ 2 - 2
ppctl.py

@@ -145,7 +145,7 @@ def deployStatus():
 # 如果域名已存在,不会再更新
 def dnsAllocation():
     if JNLP_INGRESS == "nginx":
-        httpClient = httplib.HTTPConnection("opsadmin.evbj.easou.com", 80, timeout=30)
+        httpClient = httplib.HTTPConnection("opsadmin.evbj.appeasou.com", 80, timeout=30)
         headers = {"Content-type": "application/x-www-form-urlencoded","Accept": "text/plain"}
         params = urllib.urlencode({'method': 'add', 'type': 'record', 'domain_id': 24, 'record_type': 'A', 'record_name': RECORD_NAME ,'record_ip': NGINX_RECORD_IP , 'record_ttl': 180})
         httpClient.request("POST", "/dns/dnsapi/?token=c2d1856be235a3207cd03b6f4d3c4094", params, headers)
@@ -156,7 +156,7 @@ def dnsAllocation():
         if nsStatus == "-501":
             print(JNLP_ENV + "-" + JNLP_CONTROL_NAME + JNLP_DOMAIN + " is already exist") 
         elif nsStatus == "0": 
-            httpClient = httplib.HTTPConnection("opsadmin.evbj.easou.com", 80, timeout=30)
+            httpClient = httplib.HTTPConnection("opsadmin.evbj.appeasou.com", 80, timeout=30)
             httpClient.request("POST", "/dns/mkconfig/?token=c2d1856be235a3207cd03b6f4d3c4094")
             response = httpClient.getresponse().read()
             jstr = json.loads(response)