1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-23 21:34:54 +03:00
libvirt/tests/virnetworkportxml2xmldata
Andrea Bolognani 06f5c092b8 conf: Format managed property of hostdev-pci ports correctly
The property is parsed using virTristateBoolTypeFromString() but
formatted as if it was a regular bool, which results in the
following incorrect conversion:

  BOOL_ABSENT -> managed='no'
  BOOL_YES    -> managed='yes'
  BOOL_NO     -> managed='yes'

Use the virTristateBoolTypeToString() helper to ensure the
setting can survive a roundtrip conversion.

Fixes: 4b4a981d60
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2022-04-05 13:40:33 +02:00
..
plug-bridge-mactbl.xml
plug-bridge.xml
plug-direct.xml
plug-hostdev-pci-unmanaged.xml conf: Format managed property of hostdev-pci ports correctly 2022-04-05 13:40:33 +02:00
plug-hostdev-pci.xml
plug-network.xml
plug-none.xml