mirror of https://gitee.com/openkylin/libvirt.git
storage: pool: Fix XML indentation in pool source lookup
The <source> elements need to be indented from <sources> elements.
This commit is contained in:
parent
5cc3cce5cc
commit
8617e8c8bb
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue