]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
pybind/cephfs: exception on extra init args
authorJohn Spray <john.spray@redhat.com>
Wed, 11 Nov 2015 14:22:36 +0000 (14:22 +0000)
committerJohn Spray <john.spray@redhat.com>
Tue, 5 Jan 2016 00:47:54 +0000 (00:47 +0000)
Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/cephfs.py

index 747f273b9722bfa857001ec5795eb4fce6db6ca3..71c0d40e74a57b43be8b03508327ea129280ab8b 100644 (file)
@@ -200,6 +200,9 @@ class LibCephFS(object):
 
         self.state = "uninitialized"
         if rados_inst is not None:
+            if auth_id is not None or conffile is not None or conf is not None:
+                raise InvalidValue("May not pass RADOS instance as well as other configuration")
+
             return self.create_with_rados(rados_inst)
         else:
             return self.create(conf, conffile, auth_id)