diff options
Diffstat (limited to 'ogcp/views.py')
-rw-r--r-- | ogcp/views.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/views.py b/ogcp/views.py index 41dbf3c..f7201c7 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -805,6 +805,10 @@ def action_software(): server = get_server_from_clients(ips) r = server.get('/client/setup', payload={'client': list(ips)}) + if not r.json()['partitions']: + flash(_('Software inventory is not available. Boot client in ogLive mode to obtain it'), category='error') + return redirect(url_for('commands')) + for part in r.json()['partitions'][1:]: form.os.choices.append( (f"{part.get('disk')} {part.get('partition')}", |