Skip to content

Commit

Permalink
fixed validaiton
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Feb 28, 2024
1 parent 968c144 commit 141e6be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 141e6be

Please sign in to comment.