From: John Mulligan Date: Fri, 23 Jan 2026 18:41:51 +0000 (-0500) Subject: mgr/smb: remove largely unused nuisance function X-Git-Tag: testing/wip-vshankar-testing-20260222.101816~7^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=00b53a7513803a12d718835444da2e3559603b18;p=ceph-ci.git mgr/smb: remove largely unused nuisance function Remove a function that existed largely for debugging that was frequently an attractive nuisance when reading or looking over the code path that actually creates the configuration and deploys smb resources. Signed-off-by: John Mulligan --- diff --git a/src/pybind/mgr/smb/handler.py b/src/pybind/mgr/smb/handler.py index 027931a4c59..db77e9abccf 100644 --- a/src/pybind/mgr/smb/handler.py +++ b/src/pybind/mgr/smb/handler.py @@ -646,20 +646,6 @@ class ClusterConfigHandler: def _users_and_groups_entry(self, ug_id: str) -> UsersAndGroupsEntry: return UsersAndGroupsEntry.from_store(self.internal_store, ug_id) - def generate_config(self, cluster_id: str) -> Dict[str, Any]: - """Demo function that generates a config on demand.""" - cluster = self._cluster_entry(cluster_id).get_cluster() - shares = [ - self._share_entry(cluster_id, shid).get_share() - for shid in self.share_ids_by_cluster()[cluster_id] - ] - return _generate_config( - cluster, - shares, - self._path_resolver, - _cephx_data_entity(cluster_id), - ) - def order_resources( resource_objs: Iterable[SMBResource],