append suffix to ingress hosts

This commit is contained in:
florian
2021-08-14 23:52:03 +02:00
parent 0be1da18a6
commit bc46fc3d4c
3 changed files with 6 additions and 6 deletions

View File

@@ -53,9 +53,9 @@ if __name__ == "__main__" :
# Remove old files
files = glob.glob(args.output + "/*")
for file in files :
if file.endswith(".conf") and os.path.isfile(file) :
if file.endswith(".conf") and os.path.isfile(file) and not os.path.islink(file) :
os.remove(file)
elif os.path.isdir(file) :
elif os.path.isdir(file) and not os.path.islink(file) :
shutil.rmtree(file, ignore_errors=False)
# Generate the files from templates and config