mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-03-14 10:44:13 +00:00
Changed return status for apply endpoint
This commit is contained in:
parent
e62fc24644
commit
2795aa5fd3
1 changed files with 3 additions and 1 deletions
4
main.py
4
main.py
|
@ -47,7 +47,9 @@ def getPythonVersion():
|
|||
def rebuildSystem():
|
||||
rebuildResult = subprocess.Popen(["nixos-rebuild","switch"])
|
||||
rebuildResult.communicate()[0]
|
||||
return jsonify(rebuildResult.returncode)
|
||||
return jsonify(
|
||||
status=rebuildResult.returncode
|
||||
)
|
||||
|
||||
|
||||
@app.route("/rollback", methods=["GET"])
|
||||
|
|
Loading…
Add table
Reference in a new issue