Skip to content

Commit

Permalink
Merge pull request #452 from atlanhq/FT-875
Browse files Browse the repository at this point in the history
DT-875 Fix issue with private property (`_user_id`) in the `AtlanClient` constructor
  • Loading branch information
Aryamanz29 authored Dec 26, 2024
2 parents 64580da + de38737 commit 76811bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyatlan/pkg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ def get_client(impersonate_user_id: str) -> AtlanClient:
api_key = api_token
elif user_id:
LOGGER.info("No API token found, attempting to impersonate user: %s", user_id)
client = AtlanClient(base_url=base_url, api_key="", _user_id=user_id)
client = AtlanClient(base_url=base_url, api_key="")
client._user_id = user_id
api_key = client.impersonate.user(user_id=user_id)
else:
LOGGER.info(
Expand Down

0 comments on commit 76811bf

Please sign in to comment.