From: Pedro Gonzalez Gomez Date: Thu, 22 Feb 2024 10:06:21 +0000 (+0100) Subject: mgr/dashboard: fix volume creation with multiple hosts X-Git-Tag: testing/wip-root-testing-20240411.174241~141^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=d8aecf206d94ff9ca7519683707d4b716b4cae3f;p=ceph-ci.git mgr/dashboard: fix volume creation with multiple hosts Fixes: https://tracker.ceph.com/issues/64559 Signed-off-by: Pedro Gonzalez Gomez (cherry picked from commit 4313f9a59c676067ca23242808c8e87068d0d953) --- diff --git a/src/pybind/mgr/dashboard/controllers/cephfs.py b/src/pybind/mgr/dashboard/controllers/cephfs.py index ad2cafe0ba8..6849f34e921 100644 --- a/src/pybind/mgr/dashboard/controllers/cephfs.py +++ b/src/pybind/mgr/dashboard/controllers/cephfs.py @@ -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,