update cleanyaml to recursive and run it

This commit is contained in:
Brad Laney committed 2020-08-01 18:27:15 -05:00
1 parent c5fbb0d7d6
commit 82937a88e4
6 files changed
+365 -167525

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@ def main():
# gets all files with a yaml extension in the directory
yfiles = []
for file in glob.glob("*.yaml"):
for file in glob.glob("**/*.yaml", recursive=True):
yfiles.append(file)
yfiles.sort()
@@ -38,7 +38,7 @@ def main():
# print("After: {}".format(i['trigger']))
if x == "triggers.yaml":
for i in data['trigger']:
print(i)
#print(i)
i = i.replace('’', "'")