Skip to content

Commit 5e2e3af

Browse files
chore: update dnsName
1 parent 8983978 commit 5e2e3af

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/sql/connector/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ async def _get_metadata(
145145
# Note that we have to check for PSC enablement also because CAS
146146
# instances also set the dnsName field.
147147
# Remove trailing period from DNS name. Required for SSL in Python
148-
dns_name = ret_dict.get("dnsName", "")
148+
dns_name = ret_dict.get("dnsName", "").rstrip(".")
149149
if dns_name and ret_dict.get("pscEnabled"):
150150
ip_addresses["PSC"] = dns_name
151151

google/cloud/sql/connector/pg8000.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def connect(
5050

5151
# Create socket and wrap with context.
5252
sock = ctx.wrap_socket(
53-
socket.create_connection((ip_address.rstrip("."), SERVER_PROXY_PORT)),
53+
socket.create_connection((ip_address, SERVER_PROXY_PORT)),
5454
server_hostname=ip_address,
5555
)
5656

0 commit comments

Comments
 (0)