From 708fc84e09e54fc9a4dcd0a1a55e56e0f08eb5e0 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Fri, 17 Jul 2015 23:14:31 -0700 Subject: [PATCH] Use choices for hypervisor_inspector option The hypervisor_inspector option allows the loading of various drivers. The choice of drivers is limited to those within the 'ceilometer.compute.virt' namespace as indicated in get_hypervisor_inspector(). Change-Id: I358b18ae190cdb578381f3af79956ace1ba97ec6 --- ceilometer/compute/virt/inspector.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ceilometer/compute/virt/inspector.py b/ceilometer/compute/virt/inspector.py index dd09b064..07174b87 100644 --- a/ceilometer/compute/virt/inspector.py +++ b/ceilometer/compute/virt/inspector.py @@ -27,6 +27,7 @@ from ceilometer.i18n import _ OPTS = [ cfg.StrOpt('hypervisor_inspector', default='libvirt', + choices=('hyperv', 'libvirt', 'vmware', 'xenapi'), help='Inspector to use for inspecting the hypervisor layer.'), ]