diff options
author | Cole Robinson <crobinso@redhat.com> | 2020-11-14 18:14:45 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2020-11-14 18:17:32 -0500 |
commit | ddc55c8ba54093c8ba262c6ef3f2f13a3be2995c (patch) | |
tree | 68e35319dc8c9db66c8d35c983fb28ff40e9b0e9 | |
parent | cd788e93030a6c24934c96851b23af59c12dc2a7 (diff) | |
download | virt-manager-ddc55c8ba54093c8ba262c6ef3f2f13a3be2995c.tar.gz |
hostdev: Log XML of the source nodedev device
Signed-off-by: Cole Robinson <crobinso@redhat.com>
-rw-r--r-- | virtinst/devices/hostdev.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/virtinst/devices/hostdev.py b/virtinst/devices/hostdev.py index 3e9de2ad..58884bd5 100644 --- a/virtinst/devices/hostdev.py +++ b/virtinst/devices/hostdev.py @@ -4,6 +4,8 @@ # This work is licensed under the GNU GPLv2 or later. # See the COPYING file in the top-level directory. +from ..logger import log + from .device import Device from ..nodedev import NodeDevice from ..xmlbuilder import XMLProperty @@ -13,6 +15,8 @@ class DeviceHostdev(Device): XML_NAME = "hostdev" def set_from_nodedev(self, nodedev): + log.debug("set_from_nodedev xml=\n%s", nodedev.get_xml()) + if nodedev.device_type == NodeDevice.CAPABILITY_TYPE_PCI: self.type = "pci" self.domain = nodedev.domain |