Skip to content

Commit

Permalink
fix(ingest): preserve certs when converting emitter to graph (#12211)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 authored Dec 23, 2024
1 parent 4c0b568 commit b6ea974
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions metadata-ingestion/src/datahub/ingestion/graph/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,12 @@ def from_emitter(cls, emitter: DatahubRestEmitter) -> "DataHubGraph":
retry_max_times=emitter._retry_max_times,
extra_headers=emitter._session.headers,
disable_ssl_verification=emitter._session.verify is False,
# TODO: Support these headers.
# ca_certificate_path=emitter._ca_certificate_path,
# client_certificate_path=emitter._client_certificate_path,
ca_certificate_path=(
emitter._session.verify
if isinstance(emitter._session.verify, str)
else None
),
client_certificate_path=emitter._session.cert,
)
)

Expand Down

0 comments on commit b6ea974

Please sign in to comment.