From 39061525c9a8352d3c72f3fd21b84974f7e15431 Mon Sep 17 00:00:00 2001 From: Jakub Kadlcik Date: Sat, 16 Sep 2023 16:08:53 +0200 Subject: [PATCH] webui: fix traceback from the pools page Fix https://github.com/fedora-copr/copr/issues/2882 Since we have on-demand resources, the `reload_config` now returns a tuple. See how it is used in `resallocserver.manager`. --- resallocwebui/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resallocwebui/app.py b/resallocwebui/app.py index 299df6c..a82b8d5 100644 --- a/resallocwebui/app.py +++ b/resallocwebui/app.py @@ -38,7 +38,7 @@ def pools(): result = {} # Read configuration from pools.yaml - pools_config = reload_config() + _, pools_config = reload_config() # Prepare the two-dimensional array, and fill it with zeros for name, pool in pools_config.items():