-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
python-tfe version
0.1.0
Description
Can't be sure if this is an upgrade bug or a validation bug. When running pytfe against our workspaces, workspaces.list(), we had validation errors due to some workspaces having a null value in structured_run_output_enabled
pydantic_core._pydantic_core.ValidationError: 1 validation error for Workspace
structured_run_output_enabled
Input should be a valid boolean [type=bool_type, input_value=None, input_type=NoneType]
For further information visit https://errors.pydantic.dev/2.12/v/bool_type
It's not clear to me if this was a bug in the TFE upgrade process when SRO was enabled, or pytfe being overly specific with the schema for a Workspace, so I figured I'd open this report to see.
Testing plan
1. Have a workspace with the DRO field set to `null`.
2. attempt to list workspaces
Expected Behavior
Workspaces listed
Actual Behavior
pydantic validation errors on the SRO field.
Additional Context
Workaround is straightforward: just set the value of SRO for the workspace, but it was a little annoying to figure out which workspace was actually blowing up. We have thousands of workspaces, so it's not super fast to check.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working