-
Notifications
You must be signed in to change notification settings - Fork 395
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
elb_network_lb always shown as changed #604
Comments
Files identified in the description:
If these files are inaccurate, please update the |
The error is happening in
this fixes the issue diff --git a/plugins/module_utils/elbv2.py b/plugins/module_utils/elbv2.py
index 8ad0bbf..563a542 100644
--- a/plugins/module_utils/elbv2.py
+++ b/plugins/module_utils/elbv2.py
@@ -616,6 +616,7 @@ class ELBListeners(object):
# If the lengths of the actions are the same, we'll have to verify that the
# contents of those actions are the same
if len(current_listener['DefaultActions']) == len(new_listener['DefaultActions']):
+ current_listener['DefaultActions'][0].pop('ForwardConfig')
current_actions_sorted = _sort_actions(current_listener['DefaultActions'])
new_actions_sorted = _sort_actions(new_listener['DefaultActions'])
results in
but maybe breaks other things? a PR/Issue in amazon.aws is necessary. |
Tag EC2 volume on creation SUMMARY Tag EC2 volume on creation using TagSpecifications. Fixes: ansible-collections#596 ISSUE TYPE Feature Pull Request COMPONENT NAME ec2_vol Reviewed-by: Jill R <None> Reviewed-by: None <None>
I have the opposite issue. When I re-run my create elb with static IPs I get the following error:
it should state "ok:" since nothing is being changed. |
@hectoralicea the error you're seeing looks like it's unrelated, please open a separate issue. |
@mszumilak hopefully the issue you're hitting will be fixed by ansible-collections/amazon.aws#940 |
More work on ELBv2 module_utils SUMMARY Refactors LB creation and makes sure that ip_address_type is set on creation (bug found when working on fixing NLB tests) Fixes bug with DefaultAction comparisons Extends tests for _prune_ForwardConfig Extends tests for _prune_secrets Fixes KeyError bug uncovered when extending tests for _prune_secrets ISSUE TYPE Bugfix Pull Request COMPONENT NAME plugins/module_utils/elbv2.py ADDITIONAL INFORMATION Fixes: ansible-collections/community.aws#604 See also: ansible-collections/community.aws#1365 Reviewed-by: Alina Buzachis <None>
SUMMARY
elb_network_lb
shows state of LB aschanged
with no changes made.ISSUE TYPE
COMPONENT NAME
elb_nework_lb
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
n/a
STEPS TO REPRODUCE
Create NLB and re-run the same task/playbook
EXPECTED RESULTS
I'd exect this module to show no changes if there are no changes.
ACTUAL RESULTS
Every time I run the playbook the NLB task is shown as
changed
The text was updated successfully, but these errors were encountered: