From d840e4af37a20586c842d74c604750fd2f75b317 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 10 Feb 2025 12:37:44 +0100 Subject: [PATCH] views: fix partition checks in script/run Skip check of disk data in multi-disk clients in check for uniform setup across all the clients selected. Disk data should not be considered for client configuration comparison. --- ogcp/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ogcp/views.py b/ogcp/views.py index d2d2b6e..136fe2f 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -2084,7 +2084,7 @@ def action_run_script(): for ip in ips: r = server.get('/client/setup', payload={'client': [ip]}) - partitions = r.json()['partitions'][1:] + partitions = [p for p in r.json()['partitions'] if p['partition'] != 0] if not reference_patitioning: reference_patitioning = partitions elif reference_patitioning != partitions: