]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/cephadm: re-add `apply_drivegroups()`
authorSebastian Wagner <sebastian.wagner@suse.com>
Thu, 23 Jul 2020 08:43:17 +0000 (10:43 +0200)
committerSebastian Wagner <sebastian.wagner@suse.com>
Tue, 4 Aug 2020 14:13:29 +0000 (16:13 +0200)
Fixes: d348d7bf8d3663140c089937b62a0b316b69176b
Fixes: https://tracker.ceph.com/issues/46681
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 6e8f40e4a413e5de291a32185196e31fbef49c90)

src/pybind/mgr/cephadm/module.py

index 32ae279b08b7a263d744bd4cdc1212ceeb9d1621..b36361f13671b4dd70a193eceed79a2308c01297 100644 (file)
@@ -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)