From 627888a3628e3b54debbcc92e079f60d6fc9596b Mon Sep 17 00:00:00 2001 From: Giriharan Date: Tue, 5 Nov 2024 14:09:00 +0530 Subject: [PATCH] fix: issue due to invalid type in example --- examples/auth/get_workspace_id.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/auth/get_workspace_id.py b/examples/auth/get_workspace_id.py index c2536302..a1ebacb1 100644 --- a/examples/auth/get_workspace_id.py +++ b/examples/auth/get_workspace_id.py @@ -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) ) @@ -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}")