We have the proper flags available so we can pass them to the fomatter.
The added bonus is that private data may be formatted into the status
XML.
Signed-off-by: Peter Krempa <pkrempa(a)redhat.com>
---
src/conf/domain_conf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 5c82ac0a18..40924b1d29 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -24050,7 +24050,7 @@ virDomainDiskDefFormatMirror(virBufferPtr buf,
virDomainDiskMirrorStateTypeToString(disk->mirrorState));
virBufferEscapeString(&childBuf, "<format type='%s'/>\n",
formatStr);
- if (virDomainDiskSourceFormat(&childBuf, disk->mirror, 0, false, 0, xmlopt)
< 0)
+ if (virDomainDiskSourceFormat(&childBuf, disk->mirror, 0, false, flags,
xmlopt) < 0)
return -1;
if (virXMLFormatElement(buf, "mirror", &attrBuf, &childBuf) <
0)
--
2.20.1