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:
parent
698998c410
commit
d2b065e615
2 changed files with 39 additions and 1 deletions
|
|
@ -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 '
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue