Skip to content

Commit d8be25c

Browse files
committed
use correct exit statuses in script
1 parent 5edb6db commit d8be25c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/knowledgebase-checker/knowledgebase_article_checker.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env python3
2+
import sys
23
import argparse
34
import os
45
import yaml
@@ -92,10 +93,10 @@ def main():
9293
print("\n")
9394
print("Please make sure knowledgebase articles are tagged with at least one of the following tags: \n")
9495
print(allowed_tags)
95-
return 1
96+
sys.exit(1)
9697
else:
9798
print(colored("Success: KB article tag checker did not find any articles missing tags.",'green'))
98-
return 0
99+
sys.exit(0)
99100

100101
if __name__ == "__main__":
101102
main()

0 commit comments

Comments
 (0)