Skip to content

list: set empty objects in NewListResult #1207

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 21, 2025

Conversation

stephybun
Copy link
Member

@stephybun stephybun commented Aug 19, 2025

Description

  • Sets an empty object into ResourceIdentity and Resource in the NewListResult method

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

None

@stephybun stephybun requested a review from a team as a code owner August 19, 2025 12:46
Comment on lines 19 to 22
if v, ok := val.(tftypes.Value); ok {
d.TerraformValue = v
return nil
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably want to check that the supplied val actually corresponds to the schema of the object we're setting this too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been moved over into #1198 since it's related to that piece of work

@stephybun stephybun force-pushed the f/new-listresult-empty-object branch 2 times, most recently from 074bdbb to d8b708d Compare August 20, 2025 09:27
@stephybun stephybun force-pushed the f/new-listresult-empty-object branch from d8b708d to 588762b Compare August 21, 2025 12:32
@stephybun stephybun merged commit 51dc687 into main Aug 21, 2025
19 of 37 checks passed
@stephybun stephybun deleted the f/new-listresult-empty-object branch August 21, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants