mirror of https://github.com/docker/docs.git
interpolate service_name in error message when service has no configuration options.
Signed-off-by: Dan Tenenbaum <dtenenba@fhcrc.org>
This commit is contained in:
parent
65ae22e79a
commit
e34a62956e
|
|
@ -67,7 +67,7 @@ class Project(object):
|
||||||
dicts = []
|
dicts = []
|
||||||
for service_name, service in list(config.items()):
|
for service_name, service in list(config.items()):
|
||||||
if not isinstance(service, dict):
|
if not isinstance(service, dict):
|
||||||
raise ConfigurationError('Service "%s" doesn\'t have any configuration options. All top level keys in your fig.yml must map to a dictionary of configuration options.')
|
raise ConfigurationError('Service "%s" doesn\'t have any configuration options. All top level keys in your fig.yml must map to a dictionary of configuration options.' % service_name)
|
||||||
service['name'] = service_name
|
service['name'] = service_name
|
||||||
dicts.append(service)
|
dicts.append(service)
|
||||||
return cls.from_dicts(name, dicts, client)
|
return cls.from_dicts(name, dicts, client)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue