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
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions env0/data_project.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 😞

},
"id": {
Type: schema.TypeString,
Description: "id of the project",
Optional: true,
ExactlyOneOf: []string{"name", "id"},
Computed: true,
},
"created_by": {
Type: schema.TypeString,
Expand Down