No need for .keys on volumes list

Since c3f92cca21 changed "volumes" to be a list instead of a dictionary, we don't need (and cannot) .keys when appending to set.
Reported as bug #1957
This commit is contained in:
Omri Iluz 2015-08-23 02:29:39 -07:00 committed by Matt Clay
parent 28c44c554c
commit 1c6acc3e8f

View file

@ -1025,7 +1025,7 @@ class DockerManager(object):
expected_volume_keys = set((image['ContainerConfig']['Volumes'] or {}).keys())
if self.volumes:
expected_volume_keys.update(self.volumes.keys())
expected_volume_keys.update(self.volumes)
actual_volume_keys = set((container['Config']['Volumes'] or {}).keys())