Skip to content

Commit 18fd758

Browse files
committed
fix: correct some error in new service name validation check
1 parent 8c15efc commit 18fd758

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

kp_pre_commit_hooks/gitops-values-validation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,8 @@ def validate_additional_checks(self, validator, additional_checks, value, schema
297297
yield from check_method(value, schema)
298298

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

303303
def validate_topic_name_compliance(self, value, schema):
304304
match = TOPIC_NAME_REGEXP.match(str(value))

0 commit comments

Comments
 (0)