-
Notifications
You must be signed in to change notification settings - Fork 137
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
Request cluster_id and service_name for a dbaas_logs_cluster resource… #446
Conversation
bfdbc1f
to
e2a1edc
Compare
The /dbaas/logs/{serviceName}/cluster API endpoint allow users to display the list of cluster IDs linked to the LDP: So in Terraform, we should have the same behavior : display the list of cluster IDs with a given serviceName/LDP ID. So, I think a prerequisite for this PR should be to add a WDYT? |
You're right, it's done |
aad1950
to
2873c1f
Compare
|
ovh/data_dbaas_logs_cluster.go
Outdated
d.SetId(cluster_id) | ||
log.Printf("[DEBUG] Will read dbaas logs cluster %s/%s", serviceName, clusterId) | ||
|
||
d.SetId(clusterId) |
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.
To stay aligned with the resource:
d.SetId(clusterId) | |
d.SetId(serviceName+"_"+clusterId) |
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.
Just this one comment, and we will be good :)
…/data You can have more than one cluster_id per service_name
Thanks for your contribution |
…/data
You can have more than one cluster_id per service_name
Description
Instead on blindly selecting the first cluster_id of a service_name in dbaas_logs_cluster resource and data, request the user to give it.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
make testacc TESTARGS="-run TestAccDataSourceXxxxYyyyZzzzz_basic"
make testacc TESTARGS="-run TestAccDataSourceXxxxYyyyZzzzz_basic"
Test Configuration:
terraform version
: Terraform vx.y.zChecklist:
go mod vendor
if I added or modifygo.mod
file