mirror of https://git.48k.eu/ogcp
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 availablemaster
parent
42f8ea9e40
commit
3b319a17a8
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue