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 rds_snapshot_info return values in docs #2354

Conversation

calebmckay
Copy link
Contributor

SUMMARY

There are some inaccuracies and inconsistencies in the documentation for rds_snapshot_info - specifically, missing return types and fields. This PR corrects these issues, and updates their descriptions to more closely mirror the official AWS documentation.

ISSUE TYPE
  • Docs Pull Request
COMPONENT NAME

rds_snapshot_info

ADDITIONAL INFORMATION

The documentation for rds_snapshot_info show that the module returns cluster_snapshots, but this is only true when db_cluster_identifier or db_cluster_snapshot_identifier is defined. The module returns snapshots when db_snapshot_identifier or db_instance_identifier is defined instead. This appears to have been introduced in amazon.aws 8.2.0 (specifically, PR #2156 - I have mirrored many of the formatting changes done in that PR when re-adding the snapshots object).

Several fields were also missing from the return objects for both snapshots and cluster_snapshots, so those have been added. Some descriptions also varied for identical fields in snapshots and cluster_snapshots, so all descriptions have been updated to match the AWS CLI documentation pages for describe-db-snapshots and describe-db-cluster-snapshots.

Copy link

github-actions bot commented Oct 22, 2024

Docs Build 📝

Thank you for contribution!✨

This PR has been merged and your docs changes will be incorporated when they are next published.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/1b0eb268c23d4fbc82faaa8cc139226b

✔️ ansible-galaxy-importer SUCCESS in 3m 50s
✔️ build-ansible-collection SUCCESS in 10m 06s
✔️ ansible-test-splitter SUCCESS in 3m 59s
✔️ integration-amazon.aws-1 SUCCESS in 22m 21s
✔️ integration-amazon.aws-2 SUCCESS in 15m 50s
Skipped 42 jobs

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/c3ae5b2602b04ab5828751ddd3dad368

✔️ ansible-galaxy-importer SUCCESS in 9m 04s
✔️ build-ansible-collection SUCCESS in 13m 12s
✔️ ansible-test-splitter SUCCESS in 5m 24s
✔️ integration-amazon.aws-1 SUCCESS in 23m 17s
✔️ integration-amazon.aws-2 SUCCESS in 14m 32s
Skipped 42 jobs

@alinabuzachis
Copy link
Collaborator

@tremble I think this docs update works for now, but I was wondering if we wanted to return a single "snapshots" or rename “snapshots” to “snapshot_instance” to follow the same pattern as “snapshots_cluster".

I will be inclined to have a unique returned information called "snapshots" for both cluster and instance.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/dac63d18a231499787932f7e1542b866

✔️ ansible-galaxy-importer SUCCESS in 5m 11s
✔️ build-ansible-collection SUCCESS in 11m 17s
✔️ ansible-test-splitter SUCCESS in 4m 28s
✔️ integration-amazon.aws-1 SUCCESS in 22m 54s
✔️ integration-amazon.aws-2 SUCCESS in 16m 06s
Skipped 42 jobs

@tremble tremble added the mergeit Merge the PR (SoftwareFactory) label Oct 25, 2024
Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/7aea49cd5b044665ad2a37a5770aeaee

✔️ ansible-galaxy-importer SUCCESS in 5m 18s
✔️ build-ansible-collection SUCCESS in 10m 15s
✔️ ansible-test-splitter SUCCESS in 3m 58s
✔️ integration-amazon.aws-1 SUCCESS in 23m 02s
✔️ integration-amazon.aws-2 SUCCESS in 18m 10s
Skipped 42 jobs

Copy link
Contributor

Pull request merge failed: Required status check "ansible/gate" is expected.

Copy link
Contributor

Build succeeded.
https://ansible.softwarefactory-project.io/zuul/buildset/1f5cb624717b47d9b1dd96d3168e8226

✔️ ansible-galaxy-importer SUCCESS in 4m 24s
✔️ build-ansible-collection SUCCESS in 10m 20s
✔️ ansible-test-splitter SUCCESS in 3m 55s
✔️ integration-amazon.aws-1 SUCCESS in 24m 04s
✔️ integration-amazon.aws-2 SUCCESS in 15m 49s
Skipped 42 jobs

Copy link
Contributor

Build succeeded (gate pipeline).
https://ansible.softwarefactory-project.io/zuul/buildset/827da6f482cb499b97d24cd917fe3989

✔️ ansible-galaxy-importer SUCCESS in 5m 08s
✔️ build-ansible-collection SUCCESS in 10m 13s
✔️ ansible-test-splitter SUCCESS in 3m 55s
✔️ integration-amazon.aws-1 SUCCESS in 22m 12s
✔️ integration-amazon.aws-2 SUCCESS in 17m 12s
Skipped 42 jobs

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit 786c4b7 into ansible-collections:main Oct 26, 2024
35 of 36 checks passed
@calebmckay calebmckay deleted the fix-rds-snapshot-info-docs branch October 28, 2024 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mergeit Merge the PR (SoftwareFactory)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants