From 0f6641d92f40da61c83d518b7c9c54a53daa6943 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 26 Oct 2022 17:48:34 +0200 Subject: 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(+) (limited to 'ogcp') 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'])) -- cgit v1.2.3-18-g5258