]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: add python hints to util.prepare.create_id() 61252/head
authorGuillaume Abrioux <gabrioux@ibm.com>
Tue, 7 Jan 2025 09:22:00 +0000 (09:22 +0000)
committerGuillaume Abrioux <gabrioux@ibm.com>
Tue, 7 Jan 2025 09:22:00 +0000 (09:22 +0000)
commit1fc0edb9fa0d49bf6989ef1b6f876810b48ebf8c
tree5b3893d52f992949c4f40d105a73dae546452042
parent8056c233a9e805c7edf44a6dd35003ccf16e5e8e
ceph-volume: add python hints to util.prepare.create_id()

This commit introduces type annotations to the `create_id` function in `ceph_volume.util.prepare`.
The parameters and return value are now typed as follows:
  - `fsid` is a `str`.
  - `json_secrets` is a `str`.
  - `osd_id` is an optional `str` (`Optional[str]`).
  - The function returns a `str`.

Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
src/ceph-volume/ceph_volume/util/prepare.py