mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
storage: fix omitted comma for ceph mon hosts to librados
Add omitted comma for multiple hosts.
Fixes: cdd362e0e7
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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user