提交 f161e401 编写于 作者: P Pavel Hrdina

domain_conf: cleanup virDomainGraphicsListenDefParseXML

Signed-off-by: NPavel Hrdina <phrdina@redhat.com>
上级 b33c14b3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册