Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdunnjpl committed May 3, 2024
1 parent 23140e5 commit 874e9e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/pds/registrysweepers/utils/db/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import requests
from opensearchpy.client import OpenSearch
from opensearchpy.connection.http_requests import RequestsHttpConnection
from requests_aws4auth import AWS4Auth

log = logging.getLogger()
Expand Down Expand Up @@ -59,7 +60,11 @@ def get_opensearch_client(
access_test_failed = True

client = OpenSearch(
hosts=[{"host": host, "port": int(port)}], http_auth=auth, use_ssl=use_ssl, verify_certs=verify_certs
hosts=[{"host": host, "port": int(port)}],
http_auth=auth,
use_ssl=use_ssl,
verify_certs=verify_certs,
connection_class=RequestsHttpConnection,
)

log.info("Testing OpenSearch client with ping...")
Expand Down

0 comments on commit 874e9e2

Please sign in to comment.