check_mode option is not referenced in ec2_instance #46611
Labels
affects_2.7
This issue/PR affects Ansible v2.7
aws
bug
This issue/PR relates to a bug.
cloud
module
This issue/PR relates to a module.
needs_maintainer
Ansibot is unable to identify maintainers for this PR. (Check `author` in docs or BOTMETA.yml)
python3
support:community
This issue/PR relates to code supported by the Ansible community.
SUMMARY
In the ec2_instance module, the instance also starts up when check_mode is enabled.
I am working on this problem and I am planning to release PR later.
ISSUE TYPE
COMPONENT NAME
ec2_instance
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
ubuntu16.04
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
When I actually checked the AWS console, I confirmed that an EC 2 instance was made.
ASSUMED LOCATION AS PROBLEM
ansible/lib/ansible/modules/cloud/amazon/ec2_instance.py
Line 1515 in 990e95e
And there is no logic to use the check mode option in this code.
The text was updated successfully, but these errors were encountered: