From f6f84cf8b24a9a3e52ce56c5f69a4ee5878a61c1 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Wed, 21 Feb 2024 10:38:52 +0100 Subject: views: use PART_TYPE_CODES, not PART_CODES --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogcp/views.py b/ogcp/views.py index 96ca852..fe3902b 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -831,7 +831,7 @@ def action_image_restore(): form.partition.choices = [ (f"{disk_id} {part_id}", f"Disk {disk_id} | Partition {part_id} " - f"| {PART_CODES.get(part_code, 'UNKNOWN')} " + f"| {PART_TYPE_CODES.get(part_code, 'UNKNOWN')} " f"{FS_CODES.get(filesystem, 'UNKNOWN')}") for disk_id, part_id, part_code, filesystem in part_choices ] scopes, clients = get_scopes(set(ips)) -- cgit v1.2.3-18-g5258