Updating all sources: add recursive=True to the call to glob()

This commit is contained in:
Steven Black 2016-12-18 17:55:55 -05:00
parent c022c2b230
commit ac2a06f74b

View File

@ -245,7 +245,7 @@ def matchesExclusions(strippedRule):
# Update Logic
def updateAllSources():
# Update all hosts files regardless of folder depth
allsources = glob('*/**/' + settings["sourcedatafilename"])
allsources = glob('*/**/' + settings["sourcedatafilename"], recursive=True)
for source in allsources:
updateFile = open(source, "r")
updateData = json.load(updateFile)