Commit 2f86cf43 authored by Theophile GENTILHOMME's avatar Theophile GENTILHOMME
Browse files

[common] Change return to sys.exist(...)

Return value are not given as exist code to a Click command. sys.exit
needs to by given instead.
parent f6b7f864
......@@ -29,6 +29,7 @@
'''Utility functions that are useful to all sub-commands'''
import os
import sys
import glob
import fnmatch
import difflib
......@@ -724,7 +725,7 @@ def check(prefix, type, names):
names = make_up_local_list(prefix, type, names)
return sum([check_one(prefix, type, name) for name in names])
sys.exit(sum([check_one(prefix, type, name) for name in names]))
def fetch_object(webapi, type, name, fields):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment