]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/rados: add conf/conf_defaults attributes
authorJohn Spray <john.spray@redhat.com>
Mon, 22 Sep 2014 09:38:53 +0000 (10:38 +0100)
committerJohn Spray <john.spray@redhat.com>
Wed, 8 Oct 2014 10:58:19 +0000 (11:58 +0100)
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 <john.spray@redhat.com>
src/pybind/rados.py

index dcd19ac2140d56114aa9fd06511750f4ccf6a89d..2e6df87b0c5d54cc67cf7a850d2992c69468f5c5 100644 (file)
@@ -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'):