-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add google_project_services data source #1822
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
Conversation
7f8ab15
to
eb812e0
Compare
Updated PR with passing acceptance tests (remembered how to run those haha) |
@danawillow Hi Dana! Been awhile since I've contributed here (last time I did was prior to the provider split). Not sure what the procedure is right now for PR reviews, but if you have any guidance/advice, it would be appreciated. Thank you! |
Hiya! We have a rotation each week of who's in charge of bug fixes and PR reviews. It hasn't been me in a few weeks, but it seems like the past ondutys hadn't gotten to yours, so I'm happy to take a look. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just one quick nit.
func dataSourceGoogleProjectServicesRead(d *schema.ResourceData, meta interface{}) error { | ||
config := meta.(*Config) | ||
|
||
if v, ok := d.GetOk("project"); ok { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is exactly what getProject does, so you can get rid of the first part of this if statement and leave everything that's in the else
block.
eb812e0
to
e57cb2c
Compare
Awesome! Thanks for the review, @danawillow! I've updated it per your comment 😄 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Been awhile since I contributed, so please let me know if I've missed something.
This should add a
google_project_services
data source, to view the enabled service on a GCP project.Acceptance Test: