[libvirt] [PATCH 11/17] domain_conf: cleanup virDomainGraphicsListenDefParseXML

Pavel Hrdina phrdina at redhat.com
Thu May 5 16:20:30 UTC 2016


Signed-off-by: Pavel Hrdina <phrdina at redhat.com>
---
 src/conf/domain_conf.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 9dae85d..72ab2d7 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -10707,10 +10707,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;
-- 
2.8.2




More information about the libvir-list mailing list