Use the word Release in the context of making a SCSI ID available for use, rather than the word Unreserve which is poor English. (#692)

This commit is contained in:
Daniel Markstedt 2022-02-21 11:31:38 -08:00 committed by GitHub
parent 4252d46844
commit 5d92590877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -130,9 +130,9 @@
<td class="inactive">{{ RESERVATIONS[device.id] }}</td>
<td class="inactive"></td>
<td class="inactive">
<form action="/scsi/unreserve" method="post">
<form action="/scsi/release" method="post">
<input name="scsi_id" type="hidden" value="{{ device.id }}">
<input type="submit" value="{{ _("Unreserve") }}">
<input type="submit" value="{{ _("Release") }}">
</form>
</td>
{% endif %}

View File

@ -712,11 +712,11 @@ def reserve_id():
flash(process["msg"], "error")
return redirect(url_for("index"))
@APP.route("/scsi/unreserve", methods=["POST"])
@APP.route("/scsi/release", methods=["POST"])
@login_required
def unreserve_id():
def release_id():
"""
Removes the reservation of a SCSI ID as well as the memo for the reservation
Releases the reservation of a SCSI ID as well as the memo for the reservation
"""
scsi_id = request.form.get("scsi_id")
reserved_ids = ractl.get_reserved_ids()["ids"]