Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
parkererickson-tg committed Jan 15, 2025
1 parent 2b49878 commit f203533
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pyTigerGraph/pyTigerGraphBase.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,14 +184,17 @@ def __init__(self, host: str = "http://127.0.0.1", graphname: str = "MyGraph",
raise (TigerGraphException("Incorrect graphname."))

restppPort = str(restppPort)
gsPort = str(gsPort)
sslPort = str(sslPort)
if (self.tgCloud and (restppPort == "9000" or restppPort == "443")) or (restppPort == gsPort):
if restppPort == gsPort:
sslPort = gsPort
self.restppPort = sslPort
self.restppUrl = self.host + ":" + sslPort + "/restpp"
else:
self.restppPort = restppPort
self.restppUrl = self.host + ":" + self.restppPort
gsPort = str(gsPort)

self.gsPort = gsPort
if self.tgCloud and (gsPort == "14240" or gsPort == "443"):
self.gsPort = sslPort
Expand Down

0 comments on commit f203533

Please sign in to comment.