-
Notifications
You must be signed in to change notification settings - Fork 713
Open
Labels
Description
Community Note
- Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
- Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
- If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version and Provider Version
Terraform v1.12.2
on linux_amd64
- provider registry.terraform.io/oracle/oci v7.11.0
Affected Resource(s)
data source(not resource) oci_identity_users
Terraform Configuration Files
data "oci_identity_users" "these" {
compartment_id = <tenant_oicd>
name = <user_name>
state = "ACTIVE"
}
output "users" {
value = data.oci_identity_users.these
}
Debug Output
Panic Output
Expected Behavior
using oci_identity_users data source, the filtered returned values for a particular user should be the same as the returned values for the same user in the unfiltered results for all users
Actual Behavior
the filtered results for one user has been seriously truncated and altered with wrong information. For example, if the data source was unfiltered, the user ocid will be correctly returned in the "id" field. However, if filtered with username, the returned ocid is wrong and looks like "id": "IdentityUsersDataSource-1175455571",
Steps to Reproduce
- use the sample code above, comment out the username and state filters,
terraform apply
- then uncomment the username and state filters, terraform apply.
- compare the two results for the same user