Skip to content

Commit

Permalink
fix: correct a mistake in service name length exceptions logic
Browse files Browse the repository at this point in the history
  • Loading branch information
yannrouillard committed Mar 26, 2024
1 parent 621bc07 commit 0a640b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kp_pre_commit_hooks/gitops-values-validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def iter_schema_validation_errors(self) -> Iterator[SchemaValidationError]:
)

def is_ignored_error(self, error: ValidationError):
return self.IGNORED_VALIDATION_ERRORS[error.json_path] == error.instance
return error.instance in self.IGNORED_VALIDATION_ERRORS.get(error.json_path, [])

def validate_additional_checks(self, validator, additional_checks, value, schema):
for check in additional_checks:
Expand Down

0 comments on commit 0a640b6

Please sign in to comment.