Merge "libvirt: Fix unsupported 'parallels' virt type"

This commit is contained in:
Zuul 2024-08-05 08:36:28 +00:00 committed by Gerrit Code Review
commit e9842dd91b
2 changed files with 9 additions and 2 deletions

View File

@ -30,7 +30,7 @@ LOG = logging.getLogger(__name__)
OPTS = [
cfg.StrOpt('libvirt_type',
default='kvm',
choices=['kvm', 'lxc', 'qemu', 'uml'],
choices=['kvm', 'lxc', 'qemu', 'parallels', 'uml'],
help='Libvirt domain type.'),
cfg.StrOpt('libvirt_uri',
default='',
@ -38,7 +38,10 @@ OPTS = [
'(which is dependent on libvirt_type).'),
]
LIBVIRT_PER_TYPE_URIS = dict(uml='uml:///system', lxc='lxc:///')
LIBVIRT_PER_TYPE_URIS = dict(
uml='uml:///system',
parallels='parallels:///system',
lxc='lxc:///')
# We don't use the libvirt constants in case of libvirt is not available

View File

@ -0,0 +1,4 @@
---
fixes:
- |
The ``[DEFAULT] virt_type`` option now supports ``parallels``.