Commit 7f1efcba by sikang

bug fix

parent 316b434e
...@@ -151,10 +151,11 @@ class Function: ...@@ -151,10 +151,11 @@ class Function:
if len(gateway['gateway']) > 1: if len(gateway['gateway']) > 1:
ip = gateway['gateway'][1] ip = gateway['gateway'][1]
harvest = gateway['harvester'][0].replace("https://","")
replaces = { replaces = {
"base_url": "\"%s\"" % gateway['rest'][0], "base_url": "\"%s\"" % gateway['rest'][0],
"harvest_ip": "\"%s\"" % gateway['harvester'][0].split(":")[1], "harvest_ip": "\"%s\"" % harvest.split(":")[1],
"harvest_port": "%s" % gateway['harvester'][0].split(":")[2], "harvest_port": "%s" % harvest.split(":")[2],
"gateway_ip": "\"%s\"" % ip, "gateway_ip": "\"%s\"" % ip,
"repayment_h5": "\"%s\"" % gateway['repay'][0], "repayment_h5": "\"%s\"" % gateway['repay'][0],
"admin_host": "\"%s\"" % gateway['admin'][0], "admin_host": "\"%s\"" % gateway['admin'][0],
......
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