Skip to content

Commit 5a07280

Browse files
committed
fix: correct typo in py code
1 parent 78c1eb8 commit 5a07280

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ k8s-validate [--kubernetes-version X.X.X] [--exclude glob-pattern] files
1818

1919
Add a section similar to this to your .pre-commit-hooks.yaml:
2020
- repo: https://github.com/Agilicus/pre-commit-hook-k8svalidate.git
21-
rev: v0.0.4
21+
rev: v0.0.5
2222
hooks:
2323
- id: k8svalidate
2424
args: [--exclude, "*.patch.yaml"]

pre-commit-hooks/k8svalidate

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ SPDX-License-Identifier: Apache-2.0.
77
import argparse
88
import glob
99
import itertools
10-
import os
1110
import sys
1211

1312
import jsonschema
@@ -110,6 +109,6 @@ if __name__ == "__main__":
110109
rc = main()
111110
if not rc:
112111
print("Overall result: fail", file=sys.stderr)
113-
os.exit(1)
112+
sys.exit(1)
114113
else:
115-
os.exit(0)
114+
sys.exit(0)

0 commit comments

Comments
 (0)