From: John Spray Date: Mon, 22 Sep 2014 09:38:53 +0000 (+0100) Subject: pybind/rados: add conf/conf_defaults attributes X-Git-Tag: v0.88~97^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1eb93f5be4e25ed0fc39fef43c17c760a4848f28;p=ceph.git pybind/rados: add conf/conf_defaults attributes Store these from initialization so that given a Rados object, we can read back config to initialize a LibCephFS object. Signed-off-by: John Spray --- diff --git a/src/pybind/rados.py b/src/pybind/rados.py index dcd19ac2140d..2e6df87b0c5d 100644 --- a/src/pybind/rados.py +++ b/src/pybind/rados.py @@ -205,6 +205,10 @@ Rados object in state %s." % (self.state)) raise Error("Unexpected error") else: self.librados = CDLL(librados_path) + + self.parsed_args = [] + self.conf_defaults = conf_defaults + self.conffile = conffile self.cluster = c_void_p() self.rados_id = rados_id if rados_id is not None and not isinstance(rados_id, str): @@ -312,6 +316,7 @@ Rados object in state %s." % (self.state)) # list to eliminate any missing args retargs = [a for a in cretargs if a is not None] + self.parsed_args = args return retargs def conf_parse_env(self, var='CEPH_ARGS'):