Changed var name current user id to retention user id.
diff --git a/staffeln/api/app.py b/staffeln/api/app.py
index d59902b..041b2fd 100755
--- a/staffeln/api/app.py
+++ b/staffeln/api/app.py
@@ -16,7 +16,7 @@
@app.route("/v1/backup", methods=["POST"])
def backup_id():
- current_user_id = openstack.get_user_id()
+ retention_user_id = openstack.get_user_id()
if not "user_id" in request.args or not "backup_id" in request.args:
# Return error if the backup_id argument is not provided.
@@ -24,7 +24,7 @@
"Error: backup_id or user_id is missing.", status=403, mimetype="text/plain"
)
- if current_user_id == request.args["user_id"]:
+ if retention_user_id == request.args["user_id"]:
return Response("True", status=200, mimetype="text/plain")
# Retrive the backup object from backup_data table with matching backup_id.