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
This commit is contained in:
Eric Brown 2015-07-17 23:14:31 -07:00
parent 36af88fe92
commit 708fc84e09

View File

@ -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.'),
]