From 141e6bedcaa1be64a3fb6c31924a9d0aeb7053e2 Mon Sep 17 00:00:00 2001 From: Gyanendra Mishra Date: Wed, 28 Feb 2024 13:39:07 +0000 Subject: [PATCH] fixed validaiton --- .../kurtosis_instruction/get_service/get_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/server/api_container/server/startosis_engine/kurtosis_instruction/get_service/get_service.go b/core/server/api_container/server/startosis_engine/kurtosis_instruction/get_service/get_service.go index e35c097d75..d96cac710d 100644 --- a/core/server/api_container/server/startosis_engine/kurtosis_instruction/get_service/get_service.go +++ b/core/server/api_container/server/startosis_engine/kurtosis_instruction/get_service/get_service.go @@ -66,7 +66,7 @@ func (builtin *GetServiceCapabilities) Interpret(_ string, arguments *builtin_ar } func (builtin *GetServiceCapabilities) Validate(_ *builtin_argument.ArgumentValuesSet, validatorEnvironment *startosis_validator.ValidatorEnvironment) *startosis_errors.ValidationError { - if exists := validatorEnvironment.DoesServiceNameExist(builtin.serviceName); exists != startosis_validator.ComponentNotFound { + if exists := validatorEnvironment.DoesServiceNameExist(builtin.serviceName); exists == startosis_validator.ComponentNotFound { return startosis_errors.NewValidationError("Service '%v' required by '%v' instruction doesn't exist", builtin.serviceName, GetServiceBuiltinName) } return nil