summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-19 13:12:53 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-19 14:31:21 +0200
commitc3d2582aa6431ee1c4b95c04f51905f4f0976730 (patch)
treebbe3ba35bc38e978fc10d6002b555df175fb1370 /ogcp
parent33d4c31f462e1e20f537908de3e516a0451a4dbe (diff)
views: add repository_id to image/update payloadv1.1.3-26
Give ogServer context about the proper repository to process the correct image.
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
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.