mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-25 04:42:20 +00:00
domain_conf: cleanup virDomainGraphicsListenDefParseXML
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
b33c14b342
commit
f161e40152
@ -10716,10 +10716,9 @@ virDomainGraphicsListenDefParseXML(virDomainGraphicsListenDefPtr def,
|
||||
|
||||
if (network && network[0]) {
|
||||
if (def->type != VIR_DOMAIN_GRAPHICS_LISTEN_TYPE_NETWORK) {
|
||||
/* network='xxx' never makes sense with anything except
|
||||
* type='network' */
|
||||
virReportError(VIR_ERR_XML_ERROR, "%s",
|
||||
_("network attribute not allowed when listen type is not network"));
|
||||
_("'network' attribute is valid only for listen "
|
||||
"type 'network'"));
|
||||
goto error;
|
||||
}
|
||||
def->network = network;
|
||||
|
Loading…
x
Reference in New Issue
Block a user