Force values to be sorted when compared. (#65315)
* Force values to be sorted when compared. This avoids problems where lists of values could be generated in indeterminate order. * Update lib/ansible/module_utils/aws/elbv2.py Thank you felixfontein, sorry I missed this detail. Co-Authored-By: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
aa6dbbf7ea
commit
777b6d3e30
1 changed files with 1 additions and 1 deletions
|
@ -720,7 +720,7 @@ class ELBListenerRules(object):
|
|||
current_condition['SourceIpConfig']['Values'][0] == condition['SourceIpConfig']['Values'][0]):
|
||||
condition_found = True
|
||||
break
|
||||
elif current_condition['Field'] == condition['Field'] and current_condition['Values'] == condition['Values']:
|
||||
elif current_condition['Field'] == condition['Field'] and sorted(current_condition['Values']) == sorted(condition['Values']):
|
||||
condition_found = True
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue