fix(os): remote fqdn error
This commit is contained in:
parent
10042e9a5f
commit
8b4d1a4962
|
@ -84,7 +84,7 @@ class TDTestCase:
|
||||||
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
||||||
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
if (not tdDnodes.dnodes[0].remoteIP == ""):
|
if (platform.system().lower() == 'windows' and not tdDnodes.dnodes[0].remoteIP == ""):
|
||||||
try:
|
try:
|
||||||
config = eval(tdDnodes.dnodes[0].remoteIP)
|
config = eval(tdDnodes.dnodes[0].remoteIP)
|
||||||
hostname = config["host"]
|
hostname = config["host"]
|
||||||
|
|
|
@ -86,7 +86,7 @@ class TDTestCase:
|
||||||
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
||||||
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
if (not tdDnodes.dnodes[0].remoteIP == ""):
|
if (platform.system().lower() == 'windows' and not tdDnodes.dnodes[0].remoteIP == ""):
|
||||||
try:
|
try:
|
||||||
config = eval(tdDnodes.dnodes[0].remoteIP)
|
config = eval(tdDnodes.dnodes[0].remoteIP)
|
||||||
hostname = config["host"]
|
hostname = config["host"]
|
||||||
|
|
|
@ -86,7 +86,7 @@ class TDTestCase:
|
||||||
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
#updatecfgDict = {'clientCfg': {'serverPort': 7080, 'firstEp': 'trd02:7080', 'secondEp':'trd02:7080'},\
|
||||||
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
# 'serverPort': 7080, 'firstEp': 'trd02:7080'}
|
||||||
hostname = socket.gethostname()
|
hostname = socket.gethostname()
|
||||||
if (not tdDnodes.dnodes[0].remoteIP == ""):
|
if (platform.system().lower() == 'windows' and not tdDnodes.dnodes[0].remoteIP == ""):
|
||||||
try:
|
try:
|
||||||
config = eval(tdDnodes.dnodes[0].remoteIP )
|
config = eval(tdDnodes.dnodes[0].remoteIP )
|
||||||
hostname = config["host"]
|
hostname = config["host"]
|
||||||
|
|
Loading…
Reference in New Issue