[libvirt] [PATCH] qemu: Fix indentation in virDomainDefFormatInternal

Jiri Denemark jdenemar at redhat.com
Thu Sep 6 15:44:48 UTC 2018


Broken by v3.10.0-68-gaed3d038a6.

Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
---
 src/conf/domain_conf.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
index 86199623cc..6aa5ff51b4 100644
--- a/src/conf/domain_conf.c
+++ b/src/conf/domain_conf.c
@@ -27582,10 +27582,10 @@ virDomainDefFormatInternal(virDomainDefPtr def,
          * but no leading indentation before the starting element.
          * Thankfully, libxml maps what looks like globals into
          * thread-local uses, so we are thread-safe.  */
-            xmlIndentTreeOutput = 1;
-            xmlbuf = xmlBufferCreate();
-            if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata,
-                            virBufferGetIndent(buf, false) / 2, 1) < 0) {
+        xmlIndentTreeOutput = 1;
+        xmlbuf = xmlBufferCreate();
+        if (xmlNodeDump(xmlbuf, def->metadata->doc, def->metadata,
+                        virBufferGetIndent(buf, false) / 2, 1) < 0) {
             xmlBufferFree(xmlbuf);
             xmlIndentTreeOutput = oldIndentTreeOutput;
             goto error;
-- 
2.18.0




More information about the libvir-list mailing list