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:
Ken Crowell 2016-07-12 16:16:11 -03:00 committed by Nicole Thomas
parent 7dd8035c62
commit 12b579c4e3

View File

@ -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}'