-
Notifications
You must be signed in to change notification settings - Fork 346
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
Update return block of Backup modules #2106
Update return block of Backup modules #2106
Conversation
Docs Build 📝Thank you for contribution!✨ This PR has been merged and your docs changes will be incorporated when they are next published. |
This comment was marked as outdated.
This comment was marked as outdated.
b642a08
to
70a8048
Compare
This comment was marked as outdated.
This comment was marked as outdated.
Will this fix the syntax error in the current backup_plan module docs |
@mandar242 Can you also please have a look ^ ? |
70a8048
to
ced7882
Compare
@alinabuzachis @gundalow I am not sure, looks like the same error has been there since 7.0.0, I'll dig into it and get back |
This comment was marked as outdated.
This comment was marked as outdated.
Not sure what's the exact issue,
|
This comment was marked as outdated.
This comment was marked as outdated.
b5a84ce
to
f382af7
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 00s |
plugins/modules/backup_plan.py
Outdated
@@ -33,7 +33,7 @@ | |||
rules: | |||
description: | |||
- An array of BackupRule objects, each of which specifies a scheduled task that is used to back up a selection of resources. | |||
- Required when O(state=present). | |||
- Required when o(state=present). |
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.
- Required when o(state=present). | |
- Required when O(state=present). |
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.
@alinabuzachis this change is causing sanity tests to fail, hence went with o
instead of O
. same for other suggestions
Running sanity test "validate-modules"
ERROR: Found 1 validate-modules issue(s) which need to be resolved:
ERROR: plugins/modules/backup_plan_info.py:0:0: invalid-documentation-markup: Directive "O(rules.lifecycle)" contains a non-existing option "rules.lifecycle"
See documentation for help: https://docs.ansible.com/ansible-core/2.15/dev_guide/testing/sanity/validate-modules.html
Running sanity test "yamllint"
FATAL: The 1 sanity test(s) listed below (out of 46) failed. See error output above for details.
validate-modules
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.
@mandar242 The error you're seeing is because the module does not implement that option or the path to that option is wrong. In your case you could either:
-
To reference an option for another plugin/module plugin.fqcn.name of type type, use O(plugin.fqcn.name#type:option) and O(plugin.fqcn.name#type:option=name). For modules, use type=module. The FQCN and plugin type can be ignored by the documentation renderer, turned into a link to that plugin, or even directly to the option of that plugin.
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_documenting.html#semantic-markup-within-module-documentation If you want to refer to when that option is set in the backup_plan module. Probably something likereturned: when O(amazon.aws.backup_plan#module:rules.lifecycle) configured
-
Use RV() to refer the returned value. In your case it will be
RV(backup_plans.backup_plan.rules.lifecycle)
. -
Use simply
when configured
.
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.
thanks @alinabuzachis , this helped
5e473a1
to
4bf72ef
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 35s |
Can you please run |
4bf72ef
to
983a598
Compare
Hi @gundalow , the syntax issue in https://galaxy.ansible.com/ui/repo/published/amazon/aws/content/module/backup_plan/ |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 59s |
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 5m 40s |
bbb8fa2
to
a04d9ce
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 24s |
a04d9ce
to
8f8ac24
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 4m 58s |
4f5171d
to
b50804d
Compare
Build succeeded. ✔️ ansible-galaxy-importer SUCCESS in 7m 06s |
Build succeeded (gate pipeline). ✔️ ansible-galaxy-importer SUCCESS in 4m 14s |
7c888ce
into
ansible-collections:main
Update return block of Backup modules SUMMARY Updated return block of following modules, tried to ensure consistency across their return blocks 1. backup_plan 2. backup_plan_info 3. backup_vault 4. backup_selection ISSUE TYPE Docs Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Bikouo Aubin Reviewed-by: Mike Graves <[email protected]>
Backport to stable-8: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply 7c888ce on top of patchback/backports/stable-8/7c888ce60346e4d9bdbe425038f9b82bf9ec27ff/pr-2106 Backporting merged PR #2106 into main
🤖 @patchback |
Backport to stable-failed: 💔 cherry-picking failed — target branch does not exist❌ Failed to find branch stable-failed 🤖 @patchback |
Backport to stable-8: 💚 backport PR created✅ Backport PR branch: Backported as #2249 🤖 @patchback |
Update return block of Backup modules SUMMARY Updated return block of following modules, tried to ensure consistency across their return blocks 1. backup_plan 2. backup_plan_info 3. backup_vault 4. backup_selection ISSUE TYPE Docs Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Alina Buzachis Reviewed-by: Mandar Kulkarni <[email protected]> Reviewed-by: Bikouo Aubin Reviewed-by: Mike Graves <[email protected]> (cherry picked from commit 7c888ce)
This is a backport of PR #2106 as merged into main (7c888ce). SUMMARY Updated return block of following modules, tried to ensure consistency across their return blocks 1. backup_plan 2. backup_plan_info 3. backup_vault 4. backup_selection ISSUE TYPE Docs Pull Request COMPONENT NAME ADDITIONAL INFORMATION Reviewed-by: Mark Chappell
SUMMARY
Updated return block of following modules, tried to ensure consistency across their return blocks
ISSUE TYPE
COMPONENT NAME
ADDITIONAL INFORMATION