-
Notifications
You must be signed in to change notification settings - Fork 398
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
[ec2_vpc_nat_gateway] Fix broken check_mode #436
[ec2_vpc_nat_gateway] Fix broken check_mode #436
Conversation
95deb6e
to
059c907
Compare
059c907
to
08264b6
Compare
08264b6
to
e27680a
Compare
* fix broken check_mode (remove hard coded values) * comment out integration tests run in check_mode Signed-off-by: Alina Buzachis <[email protected]>
e27680a
to
75b7abf
Compare
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.
Just a couple small things, thanks very much @alinabuzachis!
@@ -990,6 +950,10 @@ def ensure_tags(client, module, nat_gw_id, tags, purge_tags, check_mode): | |||
final_tags = [] | |||
changed = False | |||
|
|||
if check_mode and nat_gw_id is None: | |||
# We can't describe tags without an option id, we might get here when creating a new option set in check_mode |
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.
# We can't describe tags without an option id, we might get here when creating a new option set in check_mode | |
# We can't describe tags without an EIP id, we might get here when creating a new EIP in check_mode |
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.
@jillr thank you for reviewing. I applied this change.
ac19245
to
7bef5a3
Compare
recheck |
d41016a
to
34c473f
Compare
Signed-off-by: Alina Buzachis <[email protected]>
34c473f
to
851b6c9
Compare
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.
LGTM
Tests passed. (initial failures were due to exceeding the AWS quota for EIPs) |
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]>
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]>
…tions#436) * ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@044b30c
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]>
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]>
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]>
…ollections#436) ec2_group: update documentation for specifying port ranges Depends-on: ansible-collections#429 SUMMARY Added missing part of documentation for specifying port ranges as -1 value in parameter from_port and to_port is only supported for proto:icmp. Fixes ansible-collections#397 ISSUE TYPE Docs Pull Request COMPONENT NAME ec2_group Reviewed-by: Jill R <None> Reviewed-by: Markus Bergholz <[email protected]> Reviewed-by: Alina Buzachis <None> Reviewed-by: Mark Chappell <None> Reviewed-by: None <None>
* ec2_vpc_nat_gateway: fix broken check_mode * fix broken check_mode (remove hard coded values) Signed-off-by: Alina Buzachis <[email protected]> This commit was initially merged in https://github.com/ansible-collections/community.aws See: ansible-collections@044b30c
SUMMARY
Fix broken check_mode
ISSUE TYPE
COMPONENT NAME
ec2_vpc_nat_gateway