Signed-off-by: Tim Wiederhake <twiederh(a)redhat.com>
---
src/conf/domain_conf.c | 14 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 0f3be88235..842a134220 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -11812,20 +11812,10 @@ static int
virDomainChrSourceDefParseLog(virDomainChrSourceDefPtr def,
xmlNodePtr log)
{
- g_autofree char *append = NULL;
-
def->logfile = virXMLPropString(log, "file");
- if ((append = virXMLPropString(log, "append"))) {
- int value;
- if ((value = virTristateSwitchTypeFromString(append)) <= 0) {
- virReportError(VIR_ERR_INTERNAL_ERROR,
- _("Invalid append attribute value '%s'"),
- append);
- return -1;
- }
- def->logappend = value;
- }
+ if (virXMLPropTristateSwitch(log, "append", false, &def->logappend)
< 0)
+ return -1;
return 0;
}
--
2.26.2