From 05be73dc1f0f3d3999b752e14fa41c26390aae4c Mon Sep 17 00:00:00 2001 From: Sivaselvan32 Date: Wed, 1 Apr 2026 13:45:20 +0530 Subject: [PATCH 1/3] fix(run): Updated the run-source enum with additional attributes --- src/pytfe/models/run.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pytfe/models/run.py b/src/pytfe/models/run.py index 7ae158a7..8526f416 100644 --- a/src/pytfe/models/run.py +++ b/src/pytfe/models/run.py @@ -24,6 +24,10 @@ class RunSource(str, Enum): Run_Source_Configuration_Version = "tfe-configuration-version" Run_Source_UI = "tfe-ui" Run_Source_Terraform_Cloud = "terraform+cloud" + Run_Source_Terraform = "terraform" + Run_Source_Run_Trigger = "tfe-run-trigger" + Run_Source_Infra_Lifecycle = "tfe-infrastructure-lifecycle" + Run_Source_MODULE = "tfe-module" class RunStatus(str, Enum): From 532129caaf2a9339d7c31fddbaea2cf4a6c77a58 Mon Sep 17 00:00:00 2001 From: Sivaselvan32 Date: Wed, 1 Apr 2026 13:46:23 +0530 Subject: [PATCH 2/3] fix(run): updated the example of run based on the refactored workspace --- examples/run.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/examples/run.py b/examples/run.py index 96010b07..ba6ea3f4 100644 --- a/examples/run.py +++ b/examples/run.py @@ -12,6 +12,7 @@ RunListOptions, RunReadOptions, RunVariable, + Workspace, ) @@ -138,15 +139,11 @@ def main(): # Get workspace object - convert to the model type expected by run workspace_data = client.workspaces.read_by_id(args.workspace_id) - # Create the workspace object that run models expect - from pytfe.models.workspace import Workspace - workspace = Workspace( id=workspace_data.id, name=workspace_data.name, organization=workspace_data.organization, execution_mode=workspace_data.execution_mode, - project_id=workspace_data.project_id, tags=getattr(workspace_data, "tags", []), ) From 7b86f8a8b9493cf64e8af150467ab562d28b3709 Mon Sep 17 00:00:00 2001 From: Sivaselvan32 Date: Wed, 1 Apr 2026 13:50:25 +0530 Subject: [PATCH 3/3] updated run-source attributes --- src/pytfe/models/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pytfe/models/run.py b/src/pytfe/models/run.py index 8526f416..4a885252 100644 --- a/src/pytfe/models/run.py +++ b/src/pytfe/models/run.py @@ -27,7 +27,7 @@ class RunSource(str, Enum): Run_Source_Terraform = "terraform" Run_Source_Run_Trigger = "tfe-run-trigger" Run_Source_Infra_Lifecycle = "tfe-infrastructure-lifecycle" - Run_Source_MODULE = "tfe-module" + Run_Source_Module = "tfe-module" class RunStatus(str, Enum):