From 3b319a17a8526fdc507eaad078421d6803d40a46 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 22 Jan 2024 10:33:01 +0100 Subject: 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 --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ogcp') 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] -- cgit v1.2.3-18-g5258