mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
* compare source address prefix * remove useless quote
This commit is contained in:
parent
1cc7f9f2ea
commit
b6c401ccc8
2 changed files with 21 additions and 13 deletions
|
@ -426,6 +426,9 @@ def compare_rules(r, rule):
|
|||
if rule['direction'] != r['direction']:
|
||||
changed = True
|
||||
r['direction'] = rule['direction']
|
||||
if rule['source_address_prefix'] != str(r['source_address_prefix']):
|
||||
changed = True
|
||||
r['source_address_prefix'] = rule['source_address_prefix']
|
||||
return matched, changed
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue