Don't raise ConfigurationError for volume driver mismatch

when driver is unspecified

Add testcase

Signed-off-by: Joffrey F <joffrey@docker.com>
This commit is contained in:
Joffrey F 2016-03-07 18:07:41 -08:00
commit d2b065e615
2 changed files with 39 additions and 1 deletions

View file

@ -107,7 +107,7 @@ class ProjectVolumes(object):
volume.create()
else:
driver = volume.inspect()['Driver']
if driver != volume.driver:
if volume.driver is not None and driver != volume.driver:
raise ConfigurationError(
'Configuration for volume {0} specifies driver '
'{1}, but a volume with the same name uses a '