feat: add excludes file debug output

This commit is contained in:
Silthus
2020-12-17 12:44:36 +01:00
parent b5103b27fc
commit b6a711a70d
2 changed files with 34 additions and 2 deletions

View File

@@ -63,6 +63,16 @@ def remove_containers(containers: List['Container']):
except Exception as ex:
logger.exception(ex)
def join_file_content(file):
if not os.path.isfile(file):
return ""
with open(file) as c:
output = ""
lines = c.readlines()
for i in range(len(lines)):
output += lines[i] + ","
return output
def is_true(value):
"""