]> git.samba.org - bbaumbach/samba-autobuild/.git/commitdiff
KCC: docstring for test_all_reps_from()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 6 May 2015 22:33:29 +0000 (10:33 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 12 Jun 2015 04:57:15 +0000 (06:57 +0200)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/scripting/bin/samba_kcc

index 4a940daa9ab2aa45ae67a01f4453507c6c9d2a63..b5476dc031a8fc35da7e4264682f225d5c33757a 100755 (executable)
@@ -53,6 +53,19 @@ from samba.kcc import KCC
 
 
 def test_all_reps_from(lp, creds, unix_now, rng_seed=None):
+    """Run the KCC from all DSAs in read-only mode
+
+    The behaviour depends on the global opts variable which contains
+    command line variables. Usually you will want to run it with
+    opt.dot_file_dir set (via --dot-file-dir) to see the graphs that
+    would be created from each DC.
+
+    :param lp: a loadparm object.
+    :param creds: a Credentials object.
+    :param unix_now: the unix epoch time as an integer
+    :param rng_seed: a seed for the random number generator
+    :return None:
+    """
     # This implies readonly and attempt_live_connections
     kcc = KCC(unix_now, readonly=True,
               verify=opts.verify, debug=opts.debug,