]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: fix volume creation with multiple hosts 55785/head
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 22 Feb 2024 10:06:21 +0000 (11:06 +0100)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Tue, 27 Feb 2024 12:40:56 +0000 (13:40 +0100)
Fixes: https://tracker.ceph.com/issues/64559
Signed-off-by: Pedro Gonzalez Gomez <pegonzal@redhat.com>
(cherry picked from commit 4313f9a59c676067ca23242808c8e87068d0d953)

src/pybind/mgr/dashboard/controllers/cephfs.py

index ad2cafe0ba8eab725b373f83dfb752c739f28731..6849f34e9219bb77fa771b0e593b4bd862940689 100644 (file)
@@ -56,7 +56,7 @@ class CephFS(RESTController):
             service_spec_str = service_spec_str[:-1]
         if 'hosts' in service_spec['placement']:
             for host in service_spec['placement']['hosts']:
-                service_spec_str += f'{host},'
+                service_spec_str += f'{host} '
             service_spec_str = service_spec_str[:-1]
 
         error_code, _, err = mgr.remote('volumes', '_cmd_fs_volume_create', None,