]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
storage: Fix generating iscsi 'auth' xml
authorCole Robinson <crobinso@redhat.com>
Thu, 8 Oct 2009 22:05:36 +0000 (18:05 -0400)
committerCole Robinson <crobinso@redhat.com>
Tue, 13 Oct 2009 14:56:43 +0000 (10:56 -0400)
We were missing a closing tag, so the XML wasn't proper.

src/conf/storage_conf.c

index 788de15feed6fb1964f0b7697ec5f88ff552f963..1633aac240d6cc6a41d115dbabce62aab4176138 100644 (file)
@@ -799,7 +799,7 @@ virStoragePoolSourceFormat(virConnectPtr conn,
 
 
     if (src->authType == VIR_STORAGE_POOL_AUTH_CHAP)
-        virBufferVSprintf(buf,"    <auth type='chap' login='%s' passwd='%s'>\n",
+        virBufferVSprintf(buf,"    <auth type='chap' login='%s' passwd='%s'/>\n",
                           src->auth.chap.login,
                           src->auth.chap.passwd);
     virBufferAddLit(buf,"  </source>\n");