diff --git a/ansible/library/kolla_docker.py b/ansible/library/kolla_docker.py index 705fc939b7..f095c4db8e 100644 --- a/ansible/library/kolla_docker.py +++ b/ansible/library/kolla_docker.py @@ -220,7 +220,7 @@ class DockerWorker(object): return image def check_volume(self): - for vol in self.dc.volumes()['Volumes']: + for vol in self.dc.volumes()['Volumes'] or list(): if vol['Name'] == self.params.get('name'): return vol