diff --git a/python/samba/sites.py b/python/samba/sites.py index 6f7aea09ccf..075aba9fd21 100644 --- a/python/samba/sites.py +++ b/python/samba/sites.py @@ -94,9 +94,9 @@ def delete_site(samdb, configDn, siteName): dnsite = ldb.Dn(samdb, "CN=Sites") if dnsite.add_base(configDn) == False: - raise SiteException("dnsites.add_base() failed") + raise SiteException("dnsite.add_base() failed") if dnsite.add_child("CN=X") == False: - raise SiteException("dnsites.add_child() failed") + raise SiteException("dnsite.add_child() failed") dnsite.set_component(0, "CN", siteName) dnservers = ldb.Dn(samdb, "CN=Servers") diff --git a/python/samba/subnets.py b/python/samba/subnets.py index 986274fe661..65323647a35 100644 --- a/python/samba/subnets.py +++ b/python/samba/subnets.py @@ -200,9 +200,9 @@ def set_subnet_site(samdb, configDn, subnet_name, site_name): dnsite = ldb.Dn(samdb, "CN=Sites") if dnsite.add_base(configDn) == False: - raise SubnetException("dnsites.add_base() failed") + raise SubnetException("dnsite.add_base() failed") if dnsite.add_child("CN=X") == False: - raise SubnetException("dnsites.add_child() failed") + raise SubnetException("dnsite.add_child() failed") dnsite.set_component(0, "CN", site_name) dnservers = ldb.Dn(samdb, "CN=Servers")