Return value from validation

This commit is contained in:
Nico Schottelius 2020-12-20 22:03:43 +01:00
commit 858aabb5ba
3 changed files with 1 additions and 8 deletions

View file

@ -47,7 +47,6 @@ def cdist_configure_wireguard_server(config, server):
with open(fname, "w") as fd:
fd.write(config)
log.debug("git committing wireguard changes")
subprocess.run(f"cd {dirname} && git pull && git add {server} && git commit -m 'Updating config for {server}' && git push",
shell=True, check=True)