Properly indent encryption tags

* Fix for the bug reported at:

https://bugzilla.redhat.com/show_bug.cgi?id=573908
This commit is contained in:
David Allan 2010-04-22 12:55:17 -04:00
parent 96ac18591a
commit 68529bc596

View File

@ -228,7 +228,7 @@ virStorageEncryptionSecretFormat(virBufferPtr buf,
}
virUUIDFormat(secret->uuid, uuidstr);
virBufferVSprintf(buf, " <secret type='%s' uuid='%s'/>\n", type, uuidstr);
virBufferVSprintf(buf, " <secret type='%s' uuid='%s'/>\n", type, uuidstr);
return 0;
}
@ -245,14 +245,14 @@ virStorageEncryptionFormat(virBufferPtr buf,
"%s", _("unexpected encryption format"));
return -1;
}
virBufferVSprintf(buf, " <encryption format='%s'>\n", format);
virBufferVSprintf(buf, " <encryption format='%s'>\n", format);
for (i = 0; i < enc->nsecrets; i++) {
if (virStorageEncryptionSecretFormat(buf, enc->secrets[i]) < 0)
return -1;
}
virBufferAddLit(buf, " </encryption>\n");
virBufferAddLit(buf, " </encryption>\n");
return 0;
}