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
reviewable/pr18780/r1
Omri Iluz 9 years ago
parent 85ddb1b902
commit daf7a0551b

@ -1020,7 +1020,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())

Loading…
Cancel
Save