mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-02-16 14:24:29 +00:00
Changed return status for apply endpoint
This commit is contained in:
parent
e62fc24644
commit
2795aa5fd3
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…
Reference in a new issue