1
0
Fork 0

Add examples and fix minor issues

This commit is contained in:
Joao M 2022-08-11 22:36:47 +00:00
parent c6bef882ca
commit 73ced05228
4 changed files with 56 additions and 12 deletions

View file

@ -16,9 +16,7 @@ if os.getenv("HAPROXY_PASSWORD"):
"port": os.getenv("HAPROXY_STATS_PORT") if os.getenv("HAPROXY_STATS_PORT") else "1936",
}
result["metadata"] = {
"lookup_label": os.getenv("LOOKUP_LABEL") if os.getenv("LOOKUP_LABEL") else "easyhaproxy",
}
result["lookup_label"] = os.getenv("LOOKUP_LABEL") if os.getenv("LOOKUP_LABEL") else "easyhaproxy"
cfg = HaproxyConfigGenerator(result)
print(cfg.generate(lineList))