]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: pool: Fix XML indentation in pool source lookup
authorPeter Krempa <pkrempa@redhat.com>
Wed, 26 Mar 2014 18:16:48 +0000 (19:16 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 31 Mar 2014 11:47:24 +0000 (13:47 +0200)
The <source> elements need to be indented from <sources> elements.

src/conf/storage_conf.c

index a300476e9751fde62a33d50d8d91e089581a56b1..65504b451e1fa7e9f64fb05098e68767327c856d 100644 (file)
@@ -2006,11 +2006,13 @@ virStoragePoolSourceListFormat(virStoragePoolSourceListPtr def)
     }
 
     virBufferAddLit(&buf, "<sources>\n");
+    virBufferAdjustIndent(&buf, 2);
 
     for (i = 0; i < def->nsources; i++) {
         virStoragePoolSourceFormat(&buf, options, &def->sources[i]);
     }
 
+    virBufferAdjustIndent(&buf, -2);
     virBufferAddLit(&buf, "</sources>\n");
 
     if (virBufferError(&buf))