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:
parent
85ddb1b902
commit
daf7a0551b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue