File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
google/cloud/sql/connector Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments