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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for oci_os_management_hub_software_sources is incorrect (or at least incomplete) #2118

Open
jeliker opened this issue May 20, 2024 · 4 comments
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug

Comments

@jeliker
Copy link

jeliker commented May 20, 2024

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.5.7
on darwin_amd64
+ provider registry.terraform.io/oracle/oci v5.42.0

Affected Resource(s)

affected_resources = oci_os_management_hub_software_sources

Terraform Configuration Files

data "oci_os_management_hub_software_sources" "iad" {
  #Required
  compartment_id = local.tenancy_ocid
}

#Comparing to OSMS vs. OSMH above
data "oci_osmanagement_software_sources" "iad" {
  #Required
  compartment_id = local.tenancy_ocid
}

Debug Output

Panic Output

Expected Behavior

  1. Per documentation, oci_os_management_hub_software_sources has software_source_collection which apparently is iterable.
    image

  2. Actually, software_source_collection itself is a list of 1 which contains items which is list of software sources

    This will cause error though documentation suggests otherwise

    [ for s in data.oci_os_management_hub_software_sources.iad.software_source_collection : s.display_name ]

    This will work which is apparent after examining underlying API documentation (vs. Terraform provider docs alone)

    [ for s in data.oci_os_management_hub_software_sources.iad.software_source_collection[0].items : s.display_name ]
  3. Compare to this which has similar documentation and behaves as expected.
    image

  4. This will work for oci_osmanagement_software_sources

    [ for s in data.oci_osmanagement_software_sources.iad.software_sources : s.display_name ]
@jeliker jeliker added the bug label May 20, 2024
@tf-oci-pub
Copy link
Member

Thank you for reporting the issue. We observed the affected resources are not provided in the description or it's incorrect. We request you to add it in issue description as mentioned in below format.
Example: affected_resources = oci_core_instance , oci_core_instances

If it's not related to any particular resource then mention affected resource as terraform.
Example: affected_resources = terraform

As this works through automation, request you to follow exact syntax.

@tf-oci-pub tf-oci-pub added the awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance label May 21, 2024
@jeliker
Copy link
Author

jeliker commented May 21, 2024

Please fix your Bug template to prompt with the format you require! Very frustrating to have to rewrite my report because the template is incorrect. 馃槕 As I've seen elsewhere, this "awaiting-affected-resources" tag never goes away so now I'm skeptical the issue will ever be reviewed. Bleh!

@jeliker
Copy link
Author

jeliker commented May 21, 2024

Okay, I've updated. We'll see if anything happens...

@jeliker
Copy link
Author

jeliker commented May 24, 2024

I've done as you asked. Please remove awaiting-affected-resources label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-affected-resources Please Provide the affected resource name in description. ex. Affected resource - oci_core_instance bug
Projects
None yet
Development

No branches or pull requests

2 participants