]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/smb: remove largely unused nuisance function
authorJohn Mulligan <jmulligan@redhat.com>
Fri, 23 Jan 2026 18:41:51 +0000 (13:41 -0500)
committerJohn Mulligan <jmulligan@redhat.com>
Fri, 13 Feb 2026 16:42:48 +0000 (11:42 -0500)
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 <jmulligan@redhat.com>
src/pybind/mgr/smb/handler.py

index 027931a4c59d68cb383b79a51303d4c3bd890a95..db77e9abccf97704c4f342abe1cce30a0b236356 100644 (file)
@@ -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],