]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/cephadm: add a helper function for setting up smb config
authorJohn Mulligan <jmulligan@redhat.com>
Mon, 30 Jun 2025 23:11:34 +0000 (19:11 -0400)
committerAdam King <adking@redhat.com>
Thu, 21 Aug 2025 18:13:55 +0000 (14:13 -0400)
commit188a1ef66e94866eebe6f779002349ca1fbaf383
treec8512961d9a36811ea51b59e6a6b9b9ee3c91e26
parent5cab9c4feaf348695790d105134798a55fee30d0
mgr/cephadm: add a helper function for setting up smb config

Add a private helper function for copying values into the config_blobs
and similar dictionaries that are serialized and passed to cephadm for
configuration of smb. The helper automates the familiar pattern of
```
if value:
    config_blobs[key] = value
```

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 56fb07fad11b6fad0008c618c9e400bd0417b1e7)
src/pybind/mgr/cephadm/services/smb.py