Skip to content

Commit

Permalink
fix: issue due to invalid type in example
Browse files Browse the repository at this point in the history
  • Loading branch information
Giriharan219 committed Nov 5, 2024
1 parent dfb0fab commit 627888a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/auth/get_workspace_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
server_api_key = "" # SystemLink API key
workspace_name = "" # Systemlink workspace name

# Provide the valid API key and API URL for client initialization.
auth_client = AuthClient(
HttpConfiguration(server_uri=server_url, api_key=server_api_key)
)
Expand All @@ -23,7 +24,7 @@
workspaces=workspaces,
name=workspace_name,
)
workspace_id = workspace_info.id
workspace_id = workspace_info.id if workspace_info else None

if workspace_id:
print(f"Workspace ID: {workspace_id}")
Expand Down

0 comments on commit 627888a

Please sign in to comment.