Skip to content
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

Fix: project Data Source not outputting name/id properties #399

Merged
merged 2 commits into from
May 29, 2022

Conversation

TomerHeber
Copy link
Collaborator

Issue & Steps to Reproduce / Feature Request

fixes #229

Solution

It looks like adding computed "true" fixes the issue. Not sure why.
Ideas?

@@ -19,12 +19,14 @@ func dataProject() *schema.Resource {
Description: "the name of the project",
Optional: true,
ExactlyOneOf: []string{"name", "id"},
Computed: true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why would it fix the issue?
Strange...
output does work the second time running apply.

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure but I wouldn't hold any thought on this one. Let's ship this out ASAP.
The provider framework is FAR from being great 😞

@@ -19,12 +19,14 @@ func dataProject() *schema.Resource {
Description: "the name of the project",
Optional: true,
ExactlyOneOf: []string{"name", "id"},
Computed: true,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure but I wouldn't hold any thought on this one. Let's ship this out ASAP.
The provider framework is FAR from being great 😞

@github-actions github-actions bot added ready to merge PR approved - can be merged once the PR owner is ready and removed pending final review labels May 29, 2022
@TomerHeber TomerHeber merged commit e7c0678 into main May 29, 2022
@TomerHeber TomerHeber deleted the fix-project-no-output-#229 branch May 29, 2022 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix provider ready to merge PR approved - can be merged once the PR owner is ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Project Data Source not outputting name/id properties
2 participants