From a010f11224fd86a5e73549275517a4cc33f94047 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez=20Parra?= Date: Thu, 22 Sep 2022 13:05:28 +0200 Subject: [PATCH] Set server variable on GET /action/image/restore Otherwise, ogCP crashes on image restore. Fixes: 8726ade ("Adapt commands to work with several ogServers") --- ogcp/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ogcp/views.py b/ogcp/views.py index 7b6c7ae..fc2a3fb 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -644,6 +644,7 @@ def action_image_restore(): part_choices = [] + server = get_server_from_clients(ips) r = server.get('/images') for image in r.json()['images']: form.image.choices.append((image['id'], image['name']))