Added lookup_label parameter
This commit is contained in:
parent
3bea967273
commit
2ef8dfecb9
3 changed files with 8 additions and 1 deletions
|
|
@ -16,6 +16,10 @@ 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",
|
||||
}
|
||||
|
||||
cfg = HaproxyConfigGenerator(result)
|
||||
print(cfg.generate(lineList))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue