Skip to content

Commit

Permalink
fix: correct some error in new service name validation check
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrouillard committed Apr 5, 2024
1 parent 8c15efc commit 18fd758
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kp_pre_commit_hooks/gitops-values-validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ def validate_additional_checks(self, validator, additional_checks, value, schema
yield from check_method(value, schema)

def validate_service_name_matches_service_folder(self, value, schema):
if service_instance_config.path.name != value:
yield ValidationError(f"'{value}' does not match the service folder name '{service_instance_config.path.name}'")
if self.service_instance_config.path.name != value:
yield ValidationError(f"'{value}' does not match the service folder name '{self.service_instance_config.path.name}'")

def validate_topic_name_compliance(self, value, schema):
match = TOPIC_NAME_REGEXP.match(str(value))
Expand Down

0 comments on commit 18fd758

Please sign in to comment.