diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-22 13:05:28 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-27 09:48:36 +0200 |
commit | a010f11224fd86a5e73549275517a4cc33f94047 (patch) | |
tree | a3aa2821141f22a8e1a3d6aea37d8de2ca258117 /ogcp/views.py | |
parent | 9961c4bc8db111c2ea086b1f77741a454545a005 (diff) |
Set server variable on GET /action/image/restore
Otherwise, ogCP crashes on image restore.
Fixes: 8726ade ("Adapt commands to work with several ogServers")
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
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'])) |