|
|
@@ -172,11 +172,11 @@ def validate_network_mode(service_config, service_names):
|
|
|
|
|
|
|
|
|
def validate_links(service_config, service_names):
|
|
|
- for dependency in service_config.config.get('links', []):
|
|
|
- if dependency not in service_names:
|
|
|
+ for link in service_config.config.get('links', []):
|
|
|
+ if link.split(':')[0] not in service_names:
|
|
|
raise ConfigurationError(
|
|
|
- "Service '{s.name}' has a link to service '{dep}' which is "
|
|
|
- "undefined.".format(s=service_config, dep=dependency))
|
|
|
+ "Service '{s.name}' has a link to service '{link}' which is "
|
|
|
+ "undefined.".format(s=service_config, link=link))
|
|
|
|
|
|
|
|
|
def validate_depends_on(service_config, service_names):
|