mirror of https://git.48k.eu/ogcp
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.master
parent
b5cb42006e
commit
1548b6338a
|
@ -234,6 +234,7 @@ class ImageDetailsForm(FlaskForm):
|
|||
modified = StringField(label=_l('Last update'))
|
||||
permissions = StringField(label=_l('Permissions'))
|
||||
software_id = StringField(label=_l('Software id'))
|
||||
checksum = StringField(label=_l('Checksum'))
|
||||
|
||||
class ServerForm(FlaskForm):
|
||||
name = StringField(label=_l('Name'),
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue