From c3d2582aa6431ee1c4b95c04f51905f4f0976730 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Fri, 19 Jul 2024 13:12:53 +0200 Subject: views: add repository_id to image/update payload Give ogServer context about the proper repository to process the correct image. --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogcp/views.py b/ogcp/views.py index 4bd1eae..b8f43c7 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -2312,7 +2312,7 @@ def action_image_update(): 'partition': partition, 'code': code, 'name': image['name'], - 'repository': repository['ip'], + 'repository_id': int(repository['id']), 'id': str(image['id']), 'backup': form.backup.data, # Dummy parameters, not used by ogServer on image update. -- cgit v1.2.3-18-g5258