File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
google/cloud/sql/connector Expand file tree Collapse file tree 2 files changed +3
-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" , "" ). rstrip ( "." )
148+ dns_name = ret_dict .get ("dnsName" , "" )
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 1313See the License for the specific language governing permissions and
1414limitations under the License.
1515"""
16+
1617import socket
1718import ssl
1819from typing import Any , TYPE_CHECKING
@@ -49,7 +50,7 @@ def connect(
4950
5051 # Create socket and wrap with context.
5152 sock = ctx .wrap_socket (
52- socket .create_connection ((ip_address , SERVER_PROXY_PORT )),
53+ socket .create_connection ((ip_address . rstrip ( "." ) , SERVER_PROXY_PORT )),
5354 server_hostname = ip_address ,
5455 )
5556
You can’t perform that action at this time.
0 commit comments