From 10ccfc92f3e622381be1dac2eff0f5ee458549e2 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 2 Sep 2008 15:33:39 +0000 Subject: [PATCH] * src/domain_conf.c: fix a parsing error for input devices patch by Cole Robinson daniel --- ChangeLog | 5 +++++ src/domain_conf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 72c9e10a25..b47840623d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Sep 2 17:30:50 CEST 2008 Daniel Veillard + + * src/domain_conf.c: fix a parsing error for input devices + patch by Cole Robinson + Tue Sep 2 16:55:01 CEST 2008 Daniel Veillard * src/qemu_conf.c: patch from Cole Robinson to report in the diff --git a/src/domain_conf.c b/src/domain_conf.c index d482e689aa..6b2347400b 100644 --- a/src/domain_conf.c +++ b/src/domain_conf.c @@ -1656,7 +1656,7 @@ virDomainDeviceDefPtr virDomainDeviceDefParse(virConnectPtr conn, if (!(dev->data.net = virDomainNetDefParseXML(conn, node))) goto error; } else if (xmlStrEqual(node->name, BAD_CAST "input")) { - dev->type = VIR_DOMAIN_DEVICE_DISK; + dev->type = VIR_DOMAIN_DEVICE_INPUT; if (!(dev->data.input = virDomainInputDefParseXML(conn, def->os.type, node))) goto error; } else if (xmlStrEqual(node->name, BAD_CAST "sound")) {