]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: eliminate duplication of [global] section when applying set-extra-ceph-conf
authorRongqi Sun <sunrongqi@huawei.com>
Wed, 1 Mar 2023 08:15:26 +0000 (16:15 +0800)
committerRongqi Sun <sunrongqi@huawei.com>
Thu, 11 May 2023 00:58:27 +0000 (08:58 +0800)
Signed-off-by: Rongqi Sun <sunrongqi@huawei.com>
(cherry picked from commit ece7ccccc915392bced60c07703eb82142874516)

src/pybind/mgr/cephadm/module.py

index 9b708d52bc9220772382643edf732e205812321f..8e468e3c8d4afb93686fb96cda8d5f243481927e 100644 (file)
@@ -1827,7 +1827,7 @@ Then run the following:
         })
         extra = self.extra_ceph_conf().conf
         if extra:
-            config += '\n\n' + extra.strip() + '\n'
+            config += extra.strip().replace('[global]','') + '\n'
         return config
 
     def _invalidate_daemons_and_kick_serve(self, filter_host: Optional[str] = None) -> None: