1
0
mirror of https://github.com/docker/docs.git synced 2026-11-06 12:54:24 +03:00

Quote network names in error messages

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad
2016-01-18 16:15:52 +00:00
committed by Daniel Nephin
parent fffedfc87b
commit a22d248390

View File

@@ -44,11 +44,11 @@ class Network(object):
data = self.inspect()
if self.driver and data['Driver'] != self.driver:
raise ConfigurationError(
'Network {} needs to be recreated - driver has changed'
'Network "{}" needs to be recreated - driver has changed'
.format(self.full_name))
if data['Options'] != (self.driver_opts or {}):
raise ConfigurationError(
'Network {} needs to be recreated - options have changed'
'Network "{}" needs to be recreated - options have changed'
.format(self.full_name))
except NotFound:
driver_name = 'the default driver'