mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Swapping out the first item list for the iterated item.
This commit is contained in:
parent
803247f842
commit
ba7e92c113
1 changed files with 2 additions and 2 deletions
|
@ -242,11 +242,11 @@ def modify(name, beacon_data, **kwargs):
|
|||
_current_lines = []
|
||||
for _item in _current:
|
||||
_current_lines.extend(['{0}:{1}\n'.format(key, value)
|
||||
for (key, value) in six.iteritems(_current[0])])
|
||||
for (key, value) in six.iteritems(_item)])
|
||||
_new_lines = []
|
||||
for _item in _new:
|
||||
_new_lines.extend(['{0}:{1}\n'.format(key, value)
|
||||
for (key, value) in six.iteritems(_new[0])])
|
||||
for (key, value) in six.iteritems(_item)])
|
||||
_diff = difflib.unified_diff(_current_lines, _new_lines)
|
||||
|
||||
ret['changes'] = {}
|
||||
|
|
Loading…
Add table
Reference in a new issue