From 823e290604f050a0247fb8c4568929d3391c35b5 Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Thu, 23 Jul 2020 10:43:17 +0200 Subject: [PATCH] mgr/cephadm: re-add `apply_drivegroups()` Fixes: d348d7bf8d3663140c089937b62a0b316b69176b Fixes: https://tracker.ceph.com/issues/46681 Signed-off-by: Sebastian Wagner (cherry picked from commit 6e8f40e4a413e5de291a32185196e31fbef49c90) --- src/pybind/mgr/cephadm/module.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/pybind/mgr/cephadm/module.py b/src/pybind/mgr/cephadm/module.py index 32ae279b08b7a..b36361f13671b 100644 --- a/src/pybind/mgr/cephadm/module.py +++ b/src/pybind/mgr/cephadm/module.py @@ -1638,6 +1638,15 @@ you may want to run: self.log.info(f"Marking host: {host} for OSDSpec preview refresh.") self.cache.osdspec_previews_refresh_queue.append(host) + @trivial_completion + def apply_drivegroups(self, specs: List[DriveGroupSpec]): + """ + Deprecated. Please use `apply()` instead. + + Keeping this around to be compapatible to mgr/dashboard + """ + return [self._apply(spec) for spec in specs] + @trivial_completion def create_osds(self, drive_group: DriveGroupSpec): return self.osd_service.create_from_spec(drive_group) -- 2.39.5