]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
doc/rados/api/python document required_state manually
authorAlfredo Deza <adeza@redhat.com>
Tue, 15 Aug 2017 14:59:53 +0000 (10:59 -0400)
committerAlfredo Deza <adeza@redhat.com>
Wed, 16 Aug 2017 12:20:00 +0000 (08:20 -0400)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
doc/rados/api/python.rst

index 6073a61648f09c14ad92602e42c05c0d1fe378ae..d7555686b0be0236a60fd0cf8ad0221ee17b4b78 100644 (file)
@@ -280,12 +280,22 @@ the cluster ``fsid``, retrieve cluster statistics, and disconnect (shutdown)
 from the cluster. You may also assert that the cluster handle is in a particular
 state (e.g., "configuring", "connecting", etc.).
 
-
 .. automethod:: Rados.connect(timeout=0)
 .. automethod:: Rados.shutdown()
 .. automethod:: Rados.get_fsid()
 .. automethod:: Rados.get_cluster_stats()
-.. automethod:: Rados.require_state()
+
+.. documented manually because it raises warnings because of *args usage in the
+.. signature
+
+.. py:class:: Rados
+
+   .. py:method:: require_state(*args)
+
+      Checks if the Rados object is in a special state
+
+      :param args: Any number of states to check as separate arguments
+      :raises: :class:`RadosStateError`
 
 
 Pool Operations