From c6adc0f29ba2851dd738b9d505177dd12618de6b Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Fri, 14 Feb 2025 11:43:05 +0100 Subject: [PATCH] views: remove outdated ogLive checks Remove checks for a running ogLive based on an empty client setup reponse. The check is dead code as the partition setup is cached in the database so the payload always constains the information. --- ogcp/views.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/ogcp/views.py b/ogcp/views.py index 6647c36..bff61f3 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -774,10 +774,6 @@ def action_setup_show(): setup_data = get_client_setup(base_client) - if not setup_data: - flash(_('Partition information is not available. Boot client in ogLive mode to obtain it'), category='error') - return redirect(url_for('commands')) - selected_disk = 1 common_disk_data = get_common_disk_data(ips) @@ -1185,10 +1181,6 @@ 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']: part_id = part['partition'] if part_id == 0: