Commit 6d36a9c9 authored by haileyschoelkopf's avatar haileyschoelkopf Committed by lintangsutawika
Browse files

allow include_task_folder to use non-leaf dir YAML files

parent a4e84b4b
......@@ -22,7 +22,7 @@ def include_task_folder(task_dir):
Calling this function
"""
for root, subdirs, file_list in os.walk(task_dir):
if (subdirs == []) and (len(file_list) > 0):
if (len(file_list) > 0):
for f in file_list:
if f.endswith(".yaml"):
yaml_path = os.path.join(root, f)
......
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