]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: fix omitted comma for ceph mon hosts to librados
authorYi Li <yili@winhong.com>
Tue, 25 Jun 2019 11:41:25 +0000 (19:41 +0800)
committerJán Tomko <jtomko@redhat.com>
Tue, 25 Jun 2019 11:49:31 +0000 (13:49 +0200)
Add omitted comma for multiple hosts.
Fixes: cdd362e0e7a34d4f8f102c75f2ca513d23dd1db0
Signed-off-by: Yi Li <yili@winhong.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_rbd.c

index bd6e3d509d2b21fc3f7e6c67975652955102669d..315bef2feeb0b677c07ce0145deb25f24cf8fa5c 100644 (file)
@@ -272,10 +272,10 @@ virStorageBackendRBDOpenRADOSConn(virStorageBackendRBDStatePtr ptr,
             const char *incFormat;
             if (virSocketAddrNumericFamily(source->hosts[i].name) == AF_INET6) {
                 /* IPv6 address must be escaped in brackets on the cmd line */
-                incFormat = "[%s]:%d";
+                incFormat = "[%s]:%d,";
             } else {
                 /* listenAddress is a hostname or IPv4 */
-                incFormat = "%s:%d";
+                incFormat = "%s:%d,";
             }
             virBufferAsprintf(&mon_host, incFormat,
                               source->hosts[i].name,