mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
When sorting list actual_data, make it a list (#34590)
This at least impacts the `running` state when updating container with no `volumes_from` to some.
This commit is contained in:
parent
7dd8035c62
commit
12b579c4e3
@ -435,6 +435,8 @@ def _compare(actual, create_kwargs, defaults_from_image):
|
||||
# "actual" dict sorted(somedict) still just gives you a sorted
|
||||
# list of the dictionary's keys. And we don't care about the
|
||||
# value for "volumes", just its keys.
|
||||
if actual_data is None:
|
||||
actual_data = []
|
||||
actual_data = sorted(actual_data)
|
||||
desired_data = sorted(data)
|
||||
log.trace('dockerng.running ({0}): munged actual value: {1}'
|
||||
|
Loading…
Reference in New Issue
Block a user