Fix missed service message in MapR plugin
Now, in the case of presence of required service with wrong version, dependency version is added to the message. Change-Id: Id77c4da715de4d0090228ad62ca1dfde7f7d45fa Closes-Bug: #1497956
This commit is contained in:
parent
57523a684f
commit
9e97bfbd77
@ -164,11 +164,15 @@ def on_same_node(component, dependency):
|
||||
return ft.partial(validate, component=component, dependency=dependency)
|
||||
|
||||
|
||||
def depends_on(service, required_by=None):
|
||||
def depends_on(service, required_by):
|
||||
def validate(cluster_context, service, required_by):
|
||||
if not cluster_context.is_present(service):
|
||||
service_name = service.ui_name
|
||||
if service.version:
|
||||
service_name += " %s" % service.version
|
||||
|
||||
raise e.RequiredServiceMissingException(
|
||||
service.ui_name, required_by.ui_name)
|
||||
service_name, required_by.ui_name)
|
||||
|
||||
return ft.partial(validate, service=service, required_by=required_by)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user