mirror of https://git.48k.eu/ogcp
Set server variable on GET /action/image/restore
Otherwise, ogCP crashes on image restore.
Fixes: 8726ade
("Adapt commands to work with several ogServers")
async-tree
parent
9961c4bc8d
commit
a010f11224
|
@ -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']))
|
||||
|
|
Loading…
Reference in New Issue