mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
KCC: improve docstring for KCC.load_my_site()
Separating :return: from :raise: 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>
This commit is contained in:
parent
d77e149fac
commit
59a07905d5
@ -201,10 +201,10 @@ class KCC(object):
|
||||
self.my_site = self.load_site(self.my_site_dnstr)
|
||||
|
||||
def load_all_sites(self):
|
||||
"""Discover all sites and instantiate and load each
|
||||
NTDS Site settings.
|
||||
"""Discover all sites and create Site objects.
|
||||
|
||||
::returns: Raises KCCError on error
|
||||
:return: None
|
||||
:raise: KCCError if sites can't be found
|
||||
"""
|
||||
try:
|
||||
res = self.samdb.search("CN=Sites,%s" %
|
||||
|
Loading…
x
Reference in New Issue
Block a user