views: Display error if partitions are not available

Display an error if the user tries to partition and format a client that
has no partition info available
master
Javier Hernandez 2024-01-22 10:33:01 +01:00 committed by OpenGnSys Support Team
parent 42f8ea9e40
commit 3b319a17a8
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ def action_setup_show():
db_partitions = get_client_setup(base_client)
if not db_partitions:
flash(_('Selected client has no disks'), category='error')
flash(_('Partition information is not available. Boot client in ogLive mode to obtain it'), category='error')
return redirect(url_for('commands'))
filtered_partitions = [p for p in db_partitions
if p.get('disk') == selected_disk]