From bfdd59dbef0d37a0b8de4b728bd8d77b3c475c67 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Mon, 8 Jun 2015 17:29:57 +0200 Subject: [PATCH] Disable volume detail on RBD pools --- cloudcontrol/node/hypervisor/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudcontrol/node/hypervisor/__init__.py b/cloudcontrol/node/hypervisor/__init__.py index 1c58c06..2845dab 100644 --- a/cloudcontrol/node/hypervisor/__init__.py +++ b/cloudcontrol/node/hypervisor/__init__.py @@ -117,7 +117,7 @@ class Handler(HostHandler): lambda sto: sto.capacity - sto.available, 5, 5, storage), Tag('sto%s_type' % name, lambda sto: sto.type, 5, 5, storage), Tag('sto%s_vol' % name, - lambda sto: ' '.join(sto.volumes) if sto.volumes else None, + lambda sto: ' '.join(sto.volumes) if sto.volumes and sto.type != 'rbd' else None, 5, 5, storage), Tag('sto%s_ratio' % name, lambda sto: '%0.2f' % (1 - float(sto.available) / sto.capacity), 5, 5, storage), -- GitLab