summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-22 10:33:01 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-22 11:15:04 +0100
commit3b319a17a8526fdc507eaad078421d6803d40a46 (patch)
tree3398bfbc8e871cf90a3e5d8dbd276a89444a3f4f
parent42f8ea9e40c703d8a51f1b04f7bdec9d69703edb (diff)
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
-rw-r--r--ogcp/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ogcp/views.py b/ogcp/views.py
index f7201c7..77e43f9 100644
--- a/ogcp/views.py
+++ b/ogcp/views.py
@@ -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]