mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 00:55:19 +00:00
Compare sorted docker environment
This commit is contained in:
parent
3aaad17c91
commit
1de9ce382d
@ -939,6 +939,9 @@ def compare_containers(first, second, ignore=None):
|
||||
if item == 'Ulimits':
|
||||
val1 = _ulimit_sort(val1)
|
||||
val2 = _ulimit_sort(val2)
|
||||
if item == 'Env':
|
||||
val1 = sorted(val1)
|
||||
val2 = sorted(val2)
|
||||
if val1 != val2:
|
||||
ret.setdefault(conf_dict, {})[item] = {'old': val1, 'new': val2}
|
||||
# Check for optionally-present items that were in the second container
|
||||
@ -965,6 +968,9 @@ def compare_containers(first, second, ignore=None):
|
||||
if item == 'Ulimits':
|
||||
val1 = _ulimit_sort(val1)
|
||||
val2 = _ulimit_sort(val2)
|
||||
if item == 'Env':
|
||||
val1 = sorted(val1)
|
||||
val2 = sorted(val2)
|
||||
if val1 != val2:
|
||||
ret.setdefault(conf_dict, {})[item] = {'old': val1, 'new': val2}
|
||||
return ret
|
||||
|
Loading…
Reference in New Issue
Block a user