mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
enh(macdefaults): Use generator instead of list
This commit is contained in:
parent
aaba6250c0
commit
7c5baf4bbe
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ def _compare_values(new, current, vtype):
|
|||
if vtype == "array-add":
|
||||
return _is_subarray(new, current)
|
||||
if vtype == "dict-add":
|
||||
return all([key in current and new[key] == current[key] for key in new.keys()])
|
||||
return all(key in current and new[key] == current[key] for key in new.keys())
|
||||
|
||||
return new == current
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue