mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 17:57:34 +03:00
virtinst: handle the guest "title" XML element
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
620bcae93e
commit
0d03f972a3
@ -64,6 +64,7 @@
|
||||
<label>barlabel</label>
|
||||
<imagelabel>fooimage</imagelabel>
|
||||
</seclabel>
|
||||
<title>Hey title changed!</title>
|
||||
<description>Hey desc changed&</description>
|
||||
<memoryBacking>
|
||||
<hugepages/>
|
||||
|
@ -104,6 +104,7 @@ class XMLParseTest(unittest.TestCase):
|
||||
check("name", "TestGuest", "change_name")
|
||||
check("id", None, 1234)
|
||||
check("description", None, "Hey desc changed&")
|
||||
check("title", None, "Hey title changed!")
|
||||
check("vcpus", 5, 12)
|
||||
check("curvcpus", None, 10)
|
||||
check("cpuset", "1-3", "1-8,^6", "1-5,15")
|
||||
|
@ -85,7 +85,7 @@ class Guest(XMLBuilder):
|
||||
|
||||
|
||||
_XML_ROOT_NAME = "domain"
|
||||
_XML_PROP_ORDER = ["type", "name", "uuid", "description",
|
||||
_XML_PROP_ORDER = ["type", "name", "uuid", "title", "description",
|
||||
"maxmemory", "memory", "hugepage", "vcpus", "curvcpus",
|
||||
"numatune", "bootloader", "os", "features", "cpu", "clock",
|
||||
"on_poweroff", "on_reboot", "on_crash", "emulator", "_devices",
|
||||
@ -161,6 +161,7 @@ class Guest(XMLBuilder):
|
||||
hugepage = XMLProperty("./memoryBacking/hugepages", is_bool=True)
|
||||
bootloader = XMLProperty("./bootloader")
|
||||
description = XMLProperty("./description")
|
||||
title = XMLProperty("./title")
|
||||
emulator = XMLProperty("./devices/emulator")
|
||||
|
||||
on_poweroff = XMLProperty("./on_poweroff",
|
||||
|
Loading…
x
Reference in New Issue
Block a user