test
This commit is contained in:
parent
966a8a1e9b
commit
00c4b3bc7a
@ -93,13 +93,12 @@ def do_reverse_recursive_directory_search(arr_file_path):
|
|||||||
def get_file_path_list(arr):
|
def get_file_path_list(arr):
|
||||||
file_path_env_list = expected_paths_env_variables[arr["type"]][arr["event_type"]]
|
file_path_env_list = expected_paths_env_variables[arr["type"]][arr["event_type"]]
|
||||||
|
|
||||||
|
valid_keys = [x for x in file_path_env_list if x in os.environ]
|
||||||
|
if not len(valid_keys):
|
||||||
invalid_keys = [x for x in file_path_env_list if x not in os.environ]
|
invalid_keys = [x for x in file_path_env_list if x not in os.environ]
|
||||||
if len(invalid_keys):
|
if len(invalid_keys):
|
||||||
for x in invalid_keys:
|
for x in invalid_keys:
|
||||||
loggit("%s Environment variable was missing." % x, True)
|
loggit("%s Environment variable was missing.\n" % x)
|
||||||
|
|
||||||
valid_keys = [x for x in file_path_env_list if x in os.environ]
|
|
||||||
if not len(valid_keys):
|
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
env_paths = []
|
env_paths = []
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user