1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

python: Remove unused parameter ‘samdb’

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Joseph Sutton 2023-11-23 20:50:42 +13:00 committed by Andrew Bartlett
parent d9a665a0e4
commit eb727331a3
3 changed files with 4 additions and 4 deletions

View File

@ -139,7 +139,7 @@ class UpgradeProvisionWithLdbTestCase(TestCaseInTempDir):
self.names.policyid)
shutil.rmtree(dir)
self.assertFalse(os.path.isdir(dir))
update_gpo(self.paths, self.ldbs.sam, self.names)
update_gpo(self.paths, self.names)
self.assertTrue(os.path.isdir(dir))
def test_update_gpo_acl(self):
@ -150,7 +150,7 @@ class UpgradeProvisionWithLdbTestCase(TestCaseInTempDir):
os.mkdir(os.path.join(path, self.names.dnsdomain))
os.mkdir(os.path.join(os.path.join(path, self.names.dnsdomain),
"Policies"))
update_gpo(self.paths, self.ldbs.sam, self.names)
update_gpo(self.paths, self.names)
shutil.rmtree(path)
self.paths.sysvol = save

View File

@ -451,7 +451,7 @@ def updateOEMInfo(samdb, rootdn):
samdb.modify(delta)
def update_gpo(paths, samdb, names):
def update_gpo(paths, names):
"""Create missing GPO file object if needed
"""
dir = getpolicypath(paths.sysvol, names.dnsdomain, names.policyid)

View File

@ -1819,7 +1819,7 @@ if __name__ == '__main__':
if opts.full:
try:
update_gpo(paths, ldbs.sam, names)
update_gpo(paths, names)
except ProvisioningError as e:
message(ERROR, "The policy for domain controller is missing. "
"You should restart upgradeprovision with --full")