Skip to content

Commit

Permalink
Merge pull request #283 from baum/discover-rados-id
Browse files Browse the repository at this point in the history
discovery: use rados_id to connect to ceph cluster
  • Loading branch information
baum authored Oct 25, 2023
2 parents 2effc7b + 6308d4f commit 6a0eba4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,8 @@ def __init__(self, config):

ceph_pool = self.config.get("ceph", "pool")
ceph_conf = self.config.get("ceph", "config_file")
conn = rados.Rados(conffile=ceph_conf)
rados_id = self.config.get_with_default("ceph", "id", "")
conn = rados.Rados(conffile=ceph_conf, rados_id=rados_id)
conn.connect()
self.ioctx = conn.open_ioctx(ceph_pool)

Expand Down

0 comments on commit 6a0eba4

Please sign in to comment.