mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
panic notifier: display default value if not set
If we didn't set values for @type and @iobase in XML, libvirt will use the default value. Currently, virt-manager will display "-" if we don't set any values. This patch will use default value for display. And update test case to cover this scenario. Signed-off-by: Chen Hanxiao <chenhanxiao@cn.fujitsu.com>
This commit is contained in:
committed by
Cole Robinson
parent
6db30432a5
commit
2bee4a128d
@@ -787,8 +787,8 @@ class XMLParseTest(unittest.TestCase):
|
||||
dev1 = guest.get_devices("panic")[0]
|
||||
|
||||
check = self._make_checker(dev1)
|
||||
check("type", "isa", "isa")
|
||||
check("iobase", "0x505", "0x506")
|
||||
check("type", "isa", None, "isa")
|
||||
check("iobase", "0x505", None, "0x506")
|
||||
self._alter_compare(guest.get_xml_config(), outfile)
|
||||
|
||||
def testAddRemoveDevices(self):
|
||||
|
||||
Reference in New Issue
Block a user