Merge "Fix kolla_docker check_volume"

This commit is contained in:
Jenkins 2016-02-17 13:43:48 +00:00 committed by Gerrit Code Review
commit 8812271484

View File

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