spacelift-io / terraform-provider-spacelift

Terraform provider to interact with Spacelift
MIT License
76 stars 29 forks source link

Add default value for parent space ID #329

Closed jmfontaine closed 2 years ago

jmfontaine commented 2 years ago

Description of the change

The spacelift_space.parent_space_id is marked as optional but a value is actually required:

CleanShot 2022-07-20 at 11 37 04@2x

Instead of marking it as required, I chose to default to adding spaces to the root by using root as default. I found in the tests for the resource type. It works fine and I think that this was the intended behavior.

Type of change

Related issues

None

Checklists

Development

Code review