From fc3f04c2448ed3759e9fa435827697bec29728f7 Mon Sep 17 00:00:00 2001 From: catborise Date: Mon, 3 Dec 2018 16:18:41 +0300 Subject: [PATCH] Add pool refresh before getting list of volumes --- storages/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/storages/views.py b/storages/views.py index 2b3910f..ba9520e 100644 --- a/storages/views.py +++ b/storages/views.py @@ -221,6 +221,7 @@ def get_volumes(request, compute_id, pool): compute.password, compute.type, pool) + conn.refresh() except libvirtError as liberr: pass data['vols'] = sorted(conn.get_volumes())