mirror of
https://github.com/FAUSheppy/athq-vm-management
synced 2025-12-06 05:41:35 +01:00
fix: ensure consistent ordering (nsca)
This commit is contained in:
2
main.py
2
main.py
@@ -104,7 +104,7 @@ if __name__ == "__main__":
|
||||
with open("./ansible/files/nsca_server.conf", "w") as f:
|
||||
env = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath="./templates"))
|
||||
template = env.get_template("nsca_server.conf.j2")
|
||||
f.write(template.render(vmList=set(filter(lambda x: x.ansible, vmList)),
|
||||
f.write(template.render(vmList=sorted(list(set(filter(lambda x: x.ansible, vmList)))),
|
||||
password=password))
|
||||
|
||||
# dump direct connect ssh-config
|
||||
|
||||
Reference in New Issue
Block a user