[libvirt] [PATCH 1/1] Properly indent encryption tags

David Allan dallan at redhat.com
Thu Apr 22 18:32:51 UTC 2010


* Fix for the bug reported at:

https://bugzilla.redhat.com/show_bug.cgi?id=573908
---
 src/conf/storage_encryption_conf.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/conf/storage_encryption_conf.c b/src/conf/storage_encryption_conf.c
index ed71688..7f68d67 100644
--- a/src/conf/storage_encryption_conf.c
+++ b/src/conf/storage_encryption_conf.c
@@ -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;
 }
-- 
1.7.0.1




More information about the libvir-list mailing list