mirror of https://git.48k.eu/ogcp
Check images list content in client details view
Otherwise, client image assignation fails if "images" variable is empty.multi-ogserver
parent
d12b401d30
commit
a8e16a3388
|
@ -582,7 +582,7 @@ def action_client_info():
|
|||
setup = get_client_setup(ips)
|
||||
|
||||
for entry in setup:
|
||||
if entry['image'] != 0:
|
||||
if images and entry['image'] != 0:
|
||||
image = next(img for img in images if img['id'] == entry['image'])
|
||||
entry['image'] = image['name']
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue