From 0f6641d92f40da61c83d518b7c9c54a53daa6943 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20S=C3=A1nchez=20Parra?= Date: Wed, 26 Oct 2022 17:48:34 +0200 Subject: [PATCH] Set server variable on GET /action/image/update Otherwise, ogCP crashes on image update. 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 3243062..e0911b0 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1189,6 +1189,7 @@ def action_image_update(): return redirect(url_for('commands')) form.ip.data = ' '.join(ips) + server = get_server_from_clients(ips) r = server.get('/images') for image in r.json()['images']: form.image.choices.append((image['id'], image['name']))