We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5edb6db commit d8be25cCopy full SHA for d8be25c
scripts/knowledgebase-checker/knowledgebase_article_checker.py
@@ -1,4 +1,5 @@
1
#!/usr/bin/env python3
2
+import sys
3
import argparse
4
import os
5
import yaml
@@ -92,10 +93,10 @@ def main():
92
93
print("\n")
94
print("Please make sure knowledgebase articles are tagged with at least one of the following tags: \n")
95
print(allowed_tags)
- return 1
96
+ sys.exit(1)
97
else:
98
print(colored("Success: KB article tag checker did not find any articles missing tags.",'green'))
- return 0
99
+ sys.exit(0)
100
101
if __name__ == "__main__":
102
main()
0 commit comments