Skip to content

Commit

Permalink
Make change per code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ErnestoLoma committed Jan 16, 2024
1 parent d8add9d commit 94ed66f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyatlan/client/impersonate.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def _get_client_info(self) -> ClientInfo:
client_info = ClientInfo(client_id=client_id, client_secret=client_secret)
return client_info

def escolate(self) -> str:
def escalate(self) -> str:
"""
Escalate to a privileged user on a short-term basis.
Note: this is only possible from within the Atlan tenant, and only when given the appropriate credentials.
Expand Down
2 changes: 1 addition & 1 deletion pyatlan/pkg/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_client(impersonate_user_id: str) -> AtlanClient:
LOGGER.info(
"No API token or impersonation user, attempting short-lived escalation."
)
api_key = AtlanClient(base_url=base_url, api_key="").impersonate.escolate()
api_key = AtlanClient(base_url=base_url, api_key="").impersonate.escalate()
return AtlanClient(base_url=base_url, api_key=api_key)


Expand Down

0 comments on commit 94ed66f

Please sign in to comment.