summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-11 12:39:49 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-12 09:16:28 +0200
commit1548b6338adefebace3fee8bcb7de4f442e9793a (patch)
tree31a675d480d412b14e114eb74c1d35266c1619cb /ogcp/views.py
parentb5cb42006e0376383f31d473eec3697c332a65a3 (diff)
ogcp: show checksum in image info
Improve potential image troubleshooting within ogCP. Add checksum to the image info view. Show "Unknown" when no checksum is available.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index 8ece7db..f22bb62 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -3400,6 +3400,12 @@ def action_image_info():
form.software_id.data = image['software_id']
form.description.data = image['description']
+ checksum = image.get('checksum', _('Unknown'))
+ if not checksum:
+ checksum = _('Unknown')
+
+ form.checksum.data = checksum
+
try:
responses = get_images_grouped_by_repos()
except ServerError: