summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-21 10:31:10 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-21 10:32:20 +0100
commitf18f98901157c037130e443cad5a3ebb0c95a77c (patch)
treefc6965ce4eebcbfc1b20bb5786f6d885246ac7c7
parentca1af1776db2046f5339720bf3036ab31f0685e0 (diff)
views: unmatched ] in use getter to access PART_TYPE_CODES and FS_CODES1.1.3-17
-rw-r--r--ogcp/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 1ce6749..96ca852 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -1715,7 +1715,7 @@ def action_image_create():
form.os.choices.append(
(f"{part.get('disk')} {part.get('partition')} {part.get('code')}",
f"Disk {part.get('disk')} | Partition {part.get('partition')} "
- f"| {PART_TYPE_CODES.get(part.get('code'), 'UNKNOWN')]} "
+ f"| {PART_TYPE_CODES.get(part.get('code'), 'UNKNOWN')} "
f"{FS_CODES.get(part.get('filesystem'), 'UNKNOWN')}")
)
r = server.get('/client/info', payload={'client': list(ips)})
@@ -1822,7 +1822,7 @@ def action_image_update():
form.os.choices.append(
(f"{part.get('disk')} {part.get('partition')} {part.get('code')}",
f"Disk {part.get('disk')} | Partition {part.get('partition')} "
- f"| {PART_TYPE_CODES.get(part.get('code'), 'UNKNOWN')]} "
+ f"| {PART_TYPE_CODES.get(part.get('code'), 'UNKNOWN')} "
f"{FS_CODES.get(part.get('filesystem'), 'UNKNOWN')}")
)