[PATCH] storage: omit comma for ceph mon hosts to librados

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Silly mistakes omit the comma for multiple ipaddr
Fixes: cdd362e0e7a34d4f8f102c75f2ca513d23dd1db0

Signed-off-by: Yi Li <yili@xxxxxxxxxxx>
---
 src/storage/storage_backend_rbd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/storage/storage_backend_rbd.c b/src/storage/storage_backend_rbd.c
index bd6e3d5..315bef2 100644
--- a/src/storage/storage_backend_rbd.c
+++ b/src/storage/storage_backend_rbd.c
@@ -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,
-- 
2.7.5



--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux