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

All _info/_facts modules must work in check_mode #659

Closed
1 task done
felixfontein opened this issue Jul 28, 2021 · 2 comments · Fixed by #660
Closed
1 task done

All _info/_facts modules must work in check_mode #659

felixfontein opened this issue Jul 28, 2021 · 2 comments · Fixed by #660
Labels
bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type)

Comments

@felixfontein
Copy link
Contributor

Summary

There are multiple _info/_facts modules in this collection which do not support check_mode.

ansible/ansible#75324:

ERROR: plugins/modules/aws_sgw_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/cloudformation_exports_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: not a valid value for dictionary value @ data['supports_check_mode']. Got False
ERROR: plugins/modules/cloudfront_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: not a valid value for dictionary value @ data['supports_check_mode']. Got False
ERROR: plugins/modules/ec2_asg_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/ec2_lc_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/iam_mfa_device_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/iam_server_certificate_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/wafv2_resources_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None
ERROR: plugins/modules/wafv2_web_acl_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: required key not provided @ data['supports_check_mode']. Got None

Issue Type

Bug Report

Component Name

plugins/modules/aws_sgw_info.py
plugins/modules/cloudformation_exports_info.py
plugins/modules/cloudfront_info.py
plugins/modules/ec2_asg_info.py
plugins/modules/ec2_lc_info.py
plugins/modules/iam_mfa_device_info.py
plugins/modules/iam_server_certificate_info.py
plugins/modules/wafv2_resources_info.py
plugins/modules/wafv2_web_acl_info.py

Ansible Version

--

Collection Versions

latest development version

AWS SDK versions

--

Configuration

--

OS / Environment

--

Steps to Reproduce

--

Expected Results

--

Actual Results

--

Code of Conduct

  • I agree to follow the Ansible Code of Conduct
@ansibullbot
Copy link

Files identified in the description:

If these files are inaccurate, please update the component name section of the description or use the !component bot command.

click here for bot help

@ansibullbot ansibullbot added bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type) labels Jul 28, 2021
ansible-zuul bot added a commit that referenced this issue Aug 3, 2021
Update remaining _info modules so that they run in check_mode

SUMMARY
Update remaining _info modules so that they run in check_mode
https://github.com/ansible-collections/overview/blob/main/collection_requirements.rst#development-conventions
https://docs.ansible.com/ansible/devel/dev_guide/developing_modules_best_practices.html#following-ansible-conventions
fixes: #659
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
aws_sgw_info
ec2_asg_info
ec2_lc_info
iam_mfa_device_info
iam_server_certificate_info
wafv2_resources_info
wafv2_web_acl_info
ADDITIONAL INFORMATION
cc: @felixfontein
It would be good to get this in before the upcoming sanity check: ansible/ansible#75324
amazon.aws/pull/405
Depends-on: ansible/ansible-zuul-jobs#1014

Reviewed-by: Markus Bergholz <[email protected]>
Reviewed-by: Felix Fontein <None>
Reviewed-by: None <None>
ansible-zuul bot added a commit that referenced this issue Aug 6, 2021
Add supports_check_mode to cloudformation_exports_info cloudfront_info

SUMMARY
as _info modules they should run in check mode
See also #659 (missed in my first pass)
ISSUE TYPE

Bugfix Pull Request

COMPONENT NAME
cloudformation_exports_info
cloudfront_info
ADDITIONAL INFORMATION
https://dashboard.zuul.ansible.com/t/ansible/build/a5f8c6effd7745eca0b06a5a1bef7b08
ERROR: plugins/modules/cloudformation_exports_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: not a valid value for dictionary value @ data['supports_check_mode']. Got False
ERROR: plugins/modules/cloudfront_info.py:0:0: invalid-ansiblemodule-schema: AnsibleModule.supports_check_mode: not a valid value for dictionary value @ data['supports_check_mode']. Got False

Reviewed-by: Jill R <None>
Reviewed-by: None <None>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue/PR relates to a bug module module needs_triage plugins plugin (any type)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants