storage: pool: Fix XML indentation in pool source lookup

The <source> elements need to be indented from <sources> elements.
This commit is contained in:
Peter Krempa 2014-03-26 19:16:48 +01:00
parent 5cc3cce5cc
commit 8617e8c8bb
1 changed files with 2 additions and 0 deletions

View 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))